Commit 399a4e2106e9800ba1b7de7d96f3370f6d862f7c
1 parent
72af9170
Fix PL110 framebuffer byteswapping in 32bpp mode.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Showing
1 changed file
with
1 additions
and
1 deletions
hw/pl110_template.h
| @@ -282,7 +282,7 @@ static void glue(pl110_draw_line32_,NAME)(void *opaque, uint8_t *d, const uint8_ | @@ -282,7 +282,7 @@ static void glue(pl110_draw_line32_,NAME)(void *opaque, uint8_t *d, const uint8_ | ||
| 282 | #define LSB b | 282 | #define LSB b |
| 283 | #define MSB r | 283 | #define MSB r |
| 284 | #endif | 284 | #endif |
| 285 | -#ifdef SWAP_WORDS | 285 | +#ifndef SWAP_WORDS |
| 286 | LSB = data & 0xff; | 286 | LSB = data & 0xff; |
| 287 | g = (data >> 8) & 0xff; | 287 | g = (data >> 8) & 0xff; |
| 288 | MSB = (data >> 16) & 0xff; | 288 | MSB = (data >> 16) & 0xff; |