From 6fb619a032bfab5049c950e3b1919d31939b0a3c Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Wed, 14 Jun 2017 16:00:33 +0200 Subject: increase button size Signed-off-by: Wolfgang Wiedmeyer --- screen_ui.cpp | 3 +++ screen_ui.h | 2 ++ 2 files changed, 5 insertions(+) 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 { -- cgit v1.1