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-22 21:40:22 +0200
commita92d8fb45676566a56d7c27d2e8fb644523adc94 (patch)
treeacf6f62b4a38162c3f308c3cb3ec120822ada21b /screen_ui.h
parentscreen_ui: Allow setting screen margin space. (diff)
downloadandroid_bootable_recovery-a92d8fb45676566a56d7c27d2e8fb644523adc94.tar
android_bootable_recovery-a92d8fb45676566a56d7c27d2e8fb644523adc94.tar.gz
android_bootable_recovery-a92d8fb45676566a56d7c27d2e8fb644523adc94.tar.bz2
android_bootable_recovery-a92d8fb45676566a56d7c27d2e8fb644523adc94.tar.lz
android_bootable_recovery-a92d8fb45676566a56d7c27d2e8fb644523adc94.tar.xz
android_bootable_recovery-a92d8fb45676566a56d7c27d2e8fb644523adc94.tar.zst
android_bootable_recovery-a92d8fb45676566a56d7c27d2e8fb644523adc94.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 fd9f471e9..e961c1c93 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_;
@@ -138,11 +143,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();