summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-06-21 03:11:21 +0200
committerTao Bao <tbao@google.com>2017-06-23 18:45:28 +0200
commit855eaffff674f0c90cf6fe107f8d10b50efc3965 (patch)
tree3321376f646731706c186ea61884ee342e1b96f6 /screen_ui.h
parentscreen_ui: Allow setting screen margin space. (diff)
downloadandroid_bootable_recovery-855eaffff674f0c90cf6fe107f8d10b50efc3965.tar
android_bootable_recovery-855eaffff674f0c90cf6fe107f8d10b50efc3965.tar.gz
android_bootable_recovery-855eaffff674f0c90cf6fe107f8d10b50efc3965.tar.bz2
android_bootable_recovery-855eaffff674f0c90cf6fe107f8d10b50efc3965.tar.lz
android_bootable_recovery-855eaffff674f0c90cf6fe107f8d10b50efc3965.tar.xz
android_bootable_recovery-855eaffff674f0c90cf6fe107f8d10b50efc3965.tar.zst
android_bootable_recovery-855eaffff674f0c90cf6fe107f8d10b50efc3965.zip
Diffstat (limited to '')
-rw-r--r--screen_ui.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/screen_ui.h b/screen_ui.h
index 86cbd5cd3..58032d80b 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -72,6 +72,11 @@ class ScreenRecoveryUI : public RecoveryUI {
void SetColor(UIElement e);
protected:
+ // The margin that we don't want to use for showing texts (e.g. round screen, or screen with
+ // rounded corners).
+ const int kMarginWidth;
+ const int kMarginHeight;
+
// The scale factor from dp to pixels. 1.0 for mdpi, 4.0 for xxxhdpi.
const float density_;
@@ -137,11 +142,6 @@ 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();