aboutsummaryrefslogtreecommitdiffstats
path: root/android/skin/file.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-01-16 01:42:37 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-01-18 20:53:34 +0100
commit97d795c955f8d261a0a5294d49ea06d5a473ed03 (patch)
treec38306a988e9cbe8514827efd62e92cd7021c8fa /android/skin/file.h
parent9cf288a4a03f6745a81b35e8022aab3d1d5f2247 (diff)
downloadexternal_qemu-97d795c955f8d261a0a5294d49ea06d5a473ed03.zip
external_qemu-97d795c955f8d261a0a5294d49ea06d5a473ed03.tar.gz
external_qemu-97d795c955f8d261a0a5294d49ea06d5a473ed03.tar.bz2
Add support for 32-bit framebuffers.
This modifies the emulator so support 32-bit framebuffers. You can create such a frame-buffer using one of these methods: - Add a "bpp 32" line to the "display" element of your skin - Use the new 'magic' skin option format: e.g. -skin 320x480x32 Note that the result will be hideous since the kernel driver still thinks the hardware is only 16-bits. This will be addressed in a later patch to hw/goldfish_fb.c and to the kernel driver ($KERNEL/drivers/video/goldfishfb.c) Change-Id: I0fc700c4a4cb8521076605324e15ed34e5d01136
Diffstat (limited to 'android/skin/file.h')
-rw-r--r--android/skin/file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/skin/file.h b/android/skin/file.h
index 9f188b9..6f88063 100644
--- a/android/skin/file.h
+++ b/android/skin/file.h
@@ -28,6 +28,7 @@ typedef struct SkinBackground {
typedef struct SkinDisplay {
SkinRect rect; /* display rectangle */
SkinRotation rotation; /* framebuffer rotation */
+ int bpp; /* bits per pixel, 32 or 16 */
char valid;
QFrameBuffer qfbuff[1];
} SkinDisplay;