summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-06-20 08:10:44 +0200
committerTao Bao <tbao@google.com>2017-06-20 22:19:22 +0200
commit87f4650874346f1d0238e70b148a31cea5e19a2e (patch)
treee3504aa296dfa8196c9143d8435822ef30e91059 /screen_ui.h
parentMerge "Introduce VR recovery ui" am: 5efe2bca22 am: 850e00951a am: 8daabacce5 (diff)
downloadandroid_bootable_recovery-87f4650874346f1d0238e70b148a31cea5e19a2e.tar
android_bootable_recovery-87f4650874346f1d0238e70b148a31cea5e19a2e.tar.gz
android_bootable_recovery-87f4650874346f1d0238e70b148a31cea5e19a2e.tar.bz2
android_bootable_recovery-87f4650874346f1d0238e70b148a31cea5e19a2e.tar.lz
android_bootable_recovery-87f4650874346f1d0238e70b148a31cea5e19a2e.tar.xz
android_bootable_recovery-87f4650874346f1d0238e70b148a31cea5e19a2e.tar.zst
android_bootable_recovery-87f4650874346f1d0238e70b148a31cea5e19a2e.zip
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h
index bd99254f6..fd9f471e9 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -72,10 +72,11 @@ class ScreenRecoveryUI : public RecoveryUI {
void SetColor(UIElement e);
protected:
+ // The scale factor from dp to pixels. 1.0 for mdpi, 4.0 for xxxhdpi.
+ const float density_;
+
Icon currentIcon;
- // The scale factor from dp to pixels. 1.0 for mdpi, 4.0 for xxxhdpi.
- float density_;
// The layout to use.
int layout_;
@@ -136,6 +137,12 @@ class ScreenRecoveryUI : public RecoveryUI {
int char_width_;
int char_height_;
+
+ // The margin that we don't want to use for showing texts (e.g. round screen, or screen with
+ // rounded corners).
+ int margin_width_;
+ int margin_height_;
+
pthread_mutex_t updateMutex;
virtual bool InitTextParams();