summaryrefslogtreecommitdiff
path: root/hw/pl110_template.h
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-06 16:18:34 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-06 16:18:34 +0100
commit399a4e2106e9800ba1b7de7d96f3370f6d862f7c (patch)
treed86e8603b75a6986a33361b8f30b8169f4b720df /hw/pl110_template.h
parent72af9170882c435d19705f774f62828467d63e87 (diff)
downloadqemu-399a4e2106e9800ba1b7de7d96f3370f6d862f7c.tar.gz
qemu-399a4e2106e9800ba1b7de7d96f3370f6d862f7c.tar.bz2
qemu-399a4e2106e9800ba1b7de7d96f3370f6d862f7c.zip
Fix PL110 framebuffer byteswapping in 32bpp mode.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/pl110_template.h')
-rw-r--r--hw/pl110_template.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pl110_template.h b/hw/pl110_template.h
index 5b5f475600..d7ff8bc61c 100644
--- a/hw/pl110_template.h
+++ b/hw/pl110_template.h
@@ -282,7 +282,7 @@ static void glue(pl110_draw_line32_,NAME)(void *opaque, uint8_t *d, const uint8_
#define LSB b
#define MSB r
#endif
-#ifdef SWAP_WORDS
+#ifndef SWAP_WORDS
LSB = data & 0xff;
g = (data >> 8) & 0xff;
MSB = (data >> 16) & 0xff;