aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Song2017-06-23 16:33:46 -0500
committerTao Bao2017-06-23 18:51:00 -0500
commit9d4839c60fc51068ba8a389545b2751a7c5a14b0 (patch)
tree3388cd81f4ed24b2ea2d6908c5d853e1f773ce92 /vr_ui.h
parenteef231567cc9f8d8ce030c5975262872d031f7ca (diff)
downloadplatform-bootable-recovery-9d4839c60fc51068ba8a389545b2751a7c5a14b0.tar.gz
platform-bootable-recovery-9d4839c60fc51068ba8a389545b2751a7c5a14b0.tar.xz
platform-bootable-recovery-9d4839c60fc51068ba8a389545b2751a7c5a14b0.zip
Restructure vr_ui
Get rid of pixel offset variables, and use makefile variables in BoardConfigs. Bug: 37779982 Test: Verified vr ui has same behavior. Change-Id: Ifbf44e27d7101aedbe3c0e6db4b8181d56efadfd (cherry picked from commit 81a8e4cab2a20fd1b1a4716563d4d2586bd1e1de)
Diffstat (limited to 'vr_ui.h')
-rw-r--r--vr_ui.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/vr_ui.h b/vr_ui.h
index 85c57081..31ca4a61 100644
--- a/vr_ui.h
+++ b/vr_ui.h
@@ -26,12 +26,10 @@ class VrRecoveryUI : public ScreenRecoveryUI {
26 protected: 26 protected:
27 // Pixel offsets to move drawing functions to visible range. 27 // Pixel offsets to move drawing functions to visible range.
28 // Can vary per device depending on screen size and lens distortion. 28 // Can vary per device depending on screen size and lens distortion.
29 int x_offset, y_offset, stereo_offset; 29 const int kStereoOffset;
30 30
31 bool InitTextParams() override; 31 bool InitTextParams() override;
32 32
33 void DrawHorizontalRule(int* y) override;
34 void DrawHighlightBar(int x, int y, int width, int height) const override;
35 void DrawTextLine(int x, int* y, const char* line, bool bold) const override; 33 void DrawTextLine(int x, int* y, const char* line, bool bold) const override;
36}; 34};
37 35