From abbc9116322aea3e3ff674e0170b5d339425fb4f Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Wed, 8 Apr 2015 14:14:43 -0700 Subject: [PATCH] Fix the font size selection for recovery mode shamu has a 560dpi density, which is between xxhdpi and xxxhdpi. It deserves the large font (18x32), otherwise it falls back to use the small one and makes it mostly unreadable under recovery mode. Amend the list to include 560dpi and 400dpi that are higher than xhdpi. Ideally we should map string formats back to numbers for easy comparison (and to handle any high but odd density values). Change-Id: Ie08d9ce5e1c8850ff30a79bcbfd1b89e971b7e07 --- core/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Makefile b/core/Makefile index 36b23eedb..7ba82b6e8 100644 --- a/core/Makefile +++ b/core/Makefile @@ -766,7 +766,7 @@ endif # can be overridden for a particular device by putting a font.png in # its private recovery resources. -ifneq (,$(filter xxxhdpi xxhdpi xhdpi,$(recovery_density))) +ifneq (,$(filter xxxhdpi 560dpi xxhdpi 400dpi xhdpi,$(recovery_density))) recovery_font := $(call include-path-for, recovery)/fonts/18x32.png else recovery_font := $(call include-path-for, recovery)/fonts/12x22.png