]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
Fix PL110 framebuffer byteswapping in 32bpp mode.
authorPaul Brook <paul@codesourcery.com>
Wed, 6 May 2009 15:18:34 +0000 (16:18 +0100)
committerPaul Brook <paul@codesourcery.com>
Wed, 6 May 2009 15:18:34 +0000 (16:18 +0100)
Signed-off-by: Paul Brook <paul@codesourcery.com>
hw/pl110_template.h

index 5b5f4756009f5706d65408d53d10c665f78f36af..d7ff8bc61c94b1c1636de87936f2135b5d225029 100644 (file)
@@ -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;