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
diff --git a/ui.c b/ui.c
index 1df42ad..b616639 100644
--- a/ui.c
+++ b/ui.c
@@ -47,12 +47,23 @@
#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