aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-11 21:54:44 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-11 21:54:44 +0000
commit5627148a1980fcdca7201bd797b8692ee501c408 (patch)
treed6530c9827a39aabcbcd0193608d4c8c4ab72cf5 /hw
parent1fc2244d8779378e89184554c8f6f0bd3bfe8e0f (diff)
BGR_FORMAT fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1914 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/vga_template.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vga_template.h b/hw/vga_template.h
index 4ea938e01c..e7e8cb853e 100644
--- a/hw/vga_template.h
+++ b/hw/vga_template.h
@@ -493,7 +493,7 @@ static void glue(vga_draw_line24_, PIXEL_NAME)(VGAState *s1, uint8_t *d,
static void glue(vga_draw_line32_, PIXEL_NAME)(VGAState *s1, uint8_t *d,
const uint8_t *s, int width)
{
-#if DEPTH == 32 && defined(WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN)
+#if DEPTH == 32 && defined(WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN) && !defined(BGR_FORMAT)
memcpy(d, s, width * 4);
#else
int w;