summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-03 01:08:14 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-03 01:08:14 +0000
commitabbaab5c6d243378b0161b72fb7d2e5853c3ea40 (patch)
treec02aac61a19fa36179068a170f836bceba955f11
parent1bcee01487fc1bc3c43cd444c864c97a7a2d99f9 (diff)
downloadqemu-abbaab5c6d243378b0161b72fb7d2e5853c3ea40.tar.gz
qemu-abbaab5c6d243378b0161b72fb7d2e5853c3ea40.tar.bz2
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
-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