From abbaab5c6d243378b0161b72fb7d2e5853c3ea40 Mon Sep 17 00:00:00 2001 From: balrog Date: Mon, 3 Nov 2008 01:08:14 +0000 Subject: 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 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5605 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pxa2xx_template.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/pxa2xx_template.h') 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 -- cgit v1.2.3