diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-06-14 16:00:33 +0200 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-06-14 16:00:33 +0200 |
commit | 6fb619a032bfab5049c950e3b1919d31939b0a3c (patch) | |
tree | b35db597d7517574bb905eae7df9a21b9e80752e | |
parent | f7fc7522f96c98e2edba90261c7c85dcab44d7e1 (diff) | |
download | bootable_recovery-6fb619a032bfab5049c950e3b1919d31939b0a3c.zip bootable_recovery-6fb619a032bfab5049c950e3b1919d31939b0a3c.tar.gz bootable_recovery-6fb619a032bfab5049c950e3b1919d31939b0a3c.tar.bz2 |
increase button size
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r-- | screen_ui.cpp | 3 | ||||
-rw-r--r-- | screen_ui.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index 656ddce..37d2d01 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -566,6 +566,9 @@ void ScreenRecoveryUI::Init() { gr_set_font("menu"); gr_font_size(&char_width_, &char_height_); + char_height_ *= BUTTON_SCALE_FACTOR; + char_width_ *= BUTTON_SCALE_FACTOR; + text_col_ = text_row_ = 0; text_top_ = 1; diff --git a/screen_ui.h b/screen_ui.h index 78fcb9b..09d4907 100644 --- a/screen_ui.h +++ b/screen_ui.h @@ -26,6 +26,8 @@ #define SYSBAR_BACK 0x01 #define SYSBAR_HOME 0x02 +#define BUTTON_SCALE_FACTOR 1.3 + // Implementation of RecoveryUI appropriate for devices with a screen // (shows an icon + a progress bar, text logging, menu, etc.) class ScreenRecoveryUI : public RecoveryUI { |