aboutsummaryrefslogtreecommitdiffstats
path: root/ui.c
diff options
context:
space:
mode:
authorCEnnis91 <cennis91@gmail.com>2012-01-14 23:15:17 -0500
committerKoushik Dutta <koushd@gmail.com>2012-01-26 14:57:07 -0800
commitde338e56b37a1e83af000b5710bb3cb4b34d6315 (patch)
tree6a2dc14cdf8a620de8a40e8c28c45484c914c26f /ui.c
parent5a44ceb692c3d5e68007f46b68847d3d885831fa (diff)
downloadbootable_recovery-de338e56b37a1e83af000b5710bb3cb4b34d6315.zip
bootable_recovery-de338e56b37a1e83af000b5710bb3cb4b34d6315.tar.gz
bootable_recovery-de338e56b37a1e83af000b5710bb3cb4b34d6315.tar.bz2
Big Font Mod and Roboto Fonts (XHDPI, HDPI, and MDPI)
- lets xhdpi devices (Galaxy Nexus, Xoom, etc) have a bigger font size (15x24) - port Google's Roboto font into recovery for both XHDPI, HDPI, and MDPI font size, make them optional (LDPI is too small!) (credits to gweedo767 for big font) Change-Id: I621dbc7c8ac30a8f16039ce64720512e3e63881a
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 1df42ad..b616639 100644
--- a/ui.c
+++ b/ui.c
@@ -47,12 +47,23 @@ static int gShowBackButton = 0;
#define MENU_MAX_COLS 64
#define MENU_MAX_ROWS 250
-#ifndef BOARD_LDPI_RECOVERY
+#if defined(BOARD_XHDPI_RECOVERY)
+ #ifdef BOARD_USE_CUSTOM_FONT // only use big font if we want custom
+ #define CHAR_WIDTH 15
+ #define CHAR_HEIGHT 24
+ #else
+ #define CHAR_WIDTH 10
+ #define CHAR_HEIGHT 18
+ #endif
+#elif defined(BOARD_HDPI_RECOVERY)
#define CHAR_WIDTH 10
#define CHAR_HEIGHT 18
-#else
+#elif defined(BOARD_LDPI_RECOVERY)
#define CHAR_WIDTH 7
#define CHAR_HEIGHT 16
+#else
+ #define CHAR_WIDTH 10
+ #define CHAR_HEIGHT 18
#endif
#define UI_WAIT_KEY_TIMEOUT_SEC 3600