diff options
-rw-r--r-- | android/hw-lcd.c | 6 | ||||
-rw-r--r-- | android/hw-lcd.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/android/hw-lcd.c b/android/hw-lcd.c index 27a50dc355..301e4a3626 100644 --- a/android/hw-lcd.c +++ b/android/hw-lcd.c @@ -29,8 +29,12 @@ hwLcd_setBootProperty(int density) density = LCD_DENSITY_MDPI; else if (density < (LCD_DENSITY_HDPI + LCD_DENSITY_XHDPI)/2) density = LCD_DENSITY_HDPI; - else + else if (density < (LCD_DENSITY_XHDPI + LCD_DENSITY_XXHDPI)/2) density = LCD_DENSITY_XHDPI; + else if (density < (LCD_DENSITY_XXHDPI + LCD_DENSITY_XXXHDPI)/2) + density = LCD_DENSITY_XXHDPI; + else + density = LCD_DENSITY_XXXHDPI; } snprintf(temp, sizeof temp, "%d", density); diff --git a/android/hw-lcd.h b/android/hw-lcd.h index babba3f2e1..22e53c9584 100644 --- a/android/hw-lcd.h +++ b/android/hw-lcd.h @@ -17,6 +17,8 @@ #define LCD_DENSITY_TVDPI 213 #define LCD_DENSITY_HDPI 240 #define LCD_DENSITY_XHDPI 320 +#define LCD_DENSITY_XXHDPI 480 +#define LCD_DENSITY_XXXHDPI 640 /* Sets the boot property corresponding to the emulated abstract LCD density */ extern void hwLcd_setBootProperty(int density); |