From db4edaee8725b1ce194cdec9c276ce4a57b5fe9a Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Mon, 12 Aug 2019 17:15:35 -0500 Subject: Make the magicleap servo2d app 16x9 rather than square --- support/magicleap/Servo2D/code/src/Servo2D.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'support/magicleap/Servo2D/code') diff --git a/support/magicleap/Servo2D/code/src/Servo2D.cpp b/support/magicleap/Servo2D/code/src/Servo2D.cpp index 062a6411e4e..0dd8201baf8 100644 --- a/support/magicleap/Servo2D/code/src/Servo2D.cpp +++ b/support/magicleap/Servo2D/code/src/Servo2D.cpp @@ -18,22 +18,22 @@ #include // The viewport dimensions (in px). -const int VIEWPORT_W = 500; -const int VIEWPORT_H = 500; +const int VIEWPORT_W = 1280; +const int VIEWPORT_H = 720; // The hidpi factor. const float HIDPI = 1.0; // The prism dimensions (in m). -const float PRISM_W = 0.75; -const float PRISM_H = 0.75; +const float PRISM_W = 1.50; +const float PRISM_H = 1; const float PRISM_D = 0.05; // The length of the laser pointer (in m). const float LASER_LENGTH = 10.0; // The width of the keyboard -const float KEYBOARD_W = 0.666; +const float KEYBOARD_W = 1.333; // The home page const char* HOME_PAGE = "https://servo.org/ml-home"; @@ -152,7 +152,7 @@ int Servo2D::init() { } lumin::ui::UiPanel::RequestFocus(content_panel_); - lumin::ResourceIDType plane_id = prism_->createPlanarEGLResourceId(); + lumin::ResourceIDType plane_id = prism_->createPlanarEGLResourceId(VIEWPORT_W, VIEWPORT_H); if (!plane_id) { ML_LOG(Error, "Servo2D Failed to create EGL resource"); abort(); -- cgit v1.2.3