aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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 bd99254f..fd9f471e 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -72,10 +72,11 @@ class ScreenRecoveryUI : public RecoveryUI {
72 void SetColor(UIElement e); 72 void SetColor(UIElement e);
73 73
74 protected: 74 protected:
75 // The scale factor from dp to pixels. 1.0 for mdpi, 4.0 for xxxhdpi.
76 const float density_;
77
75 Icon currentIcon; 78 Icon currentIcon;
76 79
77 // The scale factor from dp to pixels. 1.0 for mdpi, 4.0 for xxxhdpi.
78 float density_;
79 // The layout to use. 80 // The layout to use.
80 int layout_; 81 int layout_;
81 82
@@ -136,6 +137,12 @@ class ScreenRecoveryUI : public RecoveryUI {
136 137
137 int char_width_; 138 int char_width_;
138 int char_height_; 139 int char_height_;
140
141 // The margin that we don't want to use for showing texts (e.g. round screen, or screen with
142 // rounded corners).
143 int margin_width_;
144 int margin_height_;
145
139 pthread_mutex_t updateMutex; 146 pthread_mutex_t updateMutex;
140 147
141 virtual bool InitTextParams(); 148 virtual bool InitTextParams();