Commit 5627148a1980fcdca7201bd797b8692ee501c408

Authored by bellard
1 parent 1fc2244d

BGR_FORMAT fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1914 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
hw/vga_template.h
... ... @@ -493,7 +493,7 @@ static void glue(vga_draw_line24_, PIXEL_NAME)(VGAState *s1, uint8_t *d,
493 493 static void glue(vga_draw_line32_, PIXEL_NAME)(VGAState *s1, uint8_t *d,
494 494 const uint8_t *s, int width)
495 495 {
496   -#if DEPTH == 32 && defined(WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN)
  496 +#if DEPTH == 32 && defined(WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN) && !defined(BGR_FORMAT)
497 497 memcpy(d, s, width * 4);
498 498 #else
499 499 int w;
... ...