From c452275f573c88cb13b2088b855ad3cf9c74201c Mon Sep 17 00:00:00 2001 From: bellard Date: Thu, 11 May 2006 21:54:44 +0000 Subject: [PATCH] BGR_FORMAT fix --- hw/vga_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/vga_template.h b/hw/vga_template.h index 4ea938e0..e7e8cb85 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; -- 2.39.5