From c5b127050f2dbed015d6b01703a33062d6910d4a Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Fri, 19 Jun 2009 00:36:12 +0200 Subject: Add a new hw.lcd.density hardware property to AVD configuration files. This value can be overriden with the already existing -dpi-device option. The value is mapped to one of 120,160 and 240, then set to the boot-time property named qemu.sf.lcd_density used by the framework to properly select assets and/or resize them at runtime. This means that "emulator -dpi-device 130" will select 120 lcd_density, or "emulator -dpi-device 220" will select a 240 one. --- android/hw-lcd.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 android/hw-lcd.h (limited to 'android/hw-lcd.h') diff --git a/android/hw-lcd.h b/android/hw-lcd.h new file mode 100644 index 0000000..b9fdb72 --- /dev/null +++ b/android/hw-lcd.h @@ -0,0 +1,23 @@ +/* Copyright (C) 2009 The Android Open Source Project +** +** This software is licensed under the terms of the GNU General Public +** License version 2, as published by the Free Software Foundation, and +** may be copied, distributed, and modified under those terms. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +*/ +#ifndef _ANDROID_HW_LCD_H +#define _ANDROID_HW_LCD_H + +#define LCD_DENSITY_MIN 120 +#define LCD_DENSITY_DEFAULT 160 +#define LCD_DENSITY_MAX 240 + +/* Sets the boot property corresponding to the emulated abstract LCD density */ +extern void hwLcd_setBootProperty(int density); + +#endif /* _ANDROID_HW_LCD_H */ + -- cgit v1.1