summaryrefslogtreecommitdiffstats
path: root/minuitwrp
diff options
context:
space:
mode:
Diffstat (limited to 'minuitwrp')
-rw-r--r--minuitwrp/Android.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk
index 3c148eacb..d953ce719 100644
--- a/minuitwrp/Android.mk
+++ b/minuitwrp/Android.mk
@@ -80,6 +80,20 @@ endif
ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),)
LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT)
+else
+ FONT_7x16 := 240x240 280x280 320x320 320x480
+ ROBOTO_10x18 := 480x800 480x854 540x960 800x480 1024x600 1024x768 1280x800
+ ROBOTO_15x24 := 720x1280 800x1280
+ ROBOTO_23x41 := 1080x1920 1200x1920 1440x2560 1600x2560 1920x1200 2560x1600
+ ifneq ($(filter $(DEVICE_RESOLUTION), $(FONT_7x16)),)
+ LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=\"font_7x16.h\"
+ else ifneq ($(filter $(DEVICE_RESOLUTION), $(ROBOTO_10x18)),)
+ LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=\"roboto_10x18.h\"
+ else ifneq ($(filter $(DEVICE_RESOLUTION), $(ROBOTO_15x24)),)
+ LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=\"roboto_15x24.h\"
+ else ifneq ($(filter $(DEVICE_RESOLUTION), $(ROBOTO_23x41)),)
+ LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=\"roboto_23x41.h\"
+ endif
endif
ifneq ($(TW_WHITELIST_INPUT),)