summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorbalrog2008-11-03 02:08:14 +0100
committerbalrog2008-11-03 02:08:14 +0100
commitabbaab5c6d243378b0161b72fb7d2e5853c3ea40 (patch)
treec02aac61a19fa36179068a170f836bceba955f11 /hw
parentMore realistic max_cpus (diff)
downloadqemu-abbaab5c6d243378b0161b72fb7d2e5853c3ea40.tar.gz
qemu-abbaab5c6d243378b0161b72fb7d2e5853c3ea40.tar.xz
qemu-abbaab5c6d243378b0161b72fb7d2e5853c3ea40.zip
Fix RGBT 5:5:5 drawing on pxa2xx lcd (Lars Munch)
This patch fixes the misinterpretaion of the transparency bit for RGBT 5:5:5 mode on pxa2xx LCDC. Signed-off-by: Lars Munch <lars@segv.dk> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5605 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/pxa2xx_template.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pxa2xx_template.h b/hw/pxa2xx_template.h
index ad3799df2c..903df7b389 100644
--- a/hw/pxa2xx_template.h
+++ b/hw/pxa2xx_template.h
@@ -156,6 +156,7 @@ static void glue(pxa2xx_draw_line16t_, BITS)(uint32_t *palette,
g = (data & 0x1f) << 3;
data >>= 5;
r = (data & 0x1f) << 3;
+ data >>= 5;
if (data & 1)
SKIP_PIXEL(dest);
else