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:22:34 +0200
commit4521b7027fd4305b7cb3a86607a8a0b0a2a48ca7 (patch)
treea9fbc5c5fff9bf9c77b7b403076078fa182d7377 /screen_ui.h
parentscreen_ui: Allow setting screen margin space. (diff)
downloadandroid_bootable_recovery-4521b7027fd4305b7cb3a86607a8a0b0a2a48ca7.tar
android_bootable_recovery-4521b7027fd4305b7cb3a86607a8a0b0a2a48ca7.tar.gz
android_bootable_recovery-4521b7027fd4305b7cb3a86607a8a0b0a2a48ca7.tar.bz2
android_bootable_recovery-4521b7027fd4305b7cb3a86607a8a0b0a2a48ca7.tar.lz
android_bootable_recovery-4521b7027fd4305b7cb3a86607a8a0b0a2a48ca7.tar.xz
android_bootable_recovery-4521b7027fd4305b7cb3a86607a8a0b0a2a48ca7.tar.zst
android_bootable_recovery-4521b7027fd4305b7cb3a86607a8a0b0a2a48ca7.zip
Diffstat (limited to 'screen_ui.h')
-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();