aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2013-11-11 18:33:35 +0530
committerStuart Scott <stuartscott@google.com>2013-12-16 22:59:46 +0000
commit454ca73c639991990eb97784c708156e4b2072c2 (patch)
treec4970cf7bb60b22ecd678ef1db5e9111cc63accc
parentcff7bfa51fed5cfadae400bd81c1e7dde8f31945 (diff)
downloadqemu-kitkat-mr2.2-release.tar.gz
Cherrypicked from AOSP (7703f5500464e18216ed77291ef70608ec6b59d2) Change-Id: I5c89b33ac317b804abb88a7f29faf51809dda1d2
-rw-r--r--android/hw-lcd.c6
-rw-r--r--android/hw-lcd.h2
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);