From b29169d2654776e749de91d65c720003ab4a2e66 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 10 Jun 2007 16:07:38 +0000 Subject: Attempt to fix incorrect colours on some BGR displays git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2974 c046a42c-6fe2-441c-8c8c-71466251a162 --- cocoa.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cocoa.m') diff --git a/cocoa.m b/cocoa.m index 9551affa3..501fb705b 100644 --- a/cocoa.m +++ b/cocoa.m @@ -164,7 +164,12 @@ static void cocoa_resize(DisplayState *ds, int w, int h) ds->depth = device_bpp; ds->width = w; ds->height = h; - +#ifdef __LITTLE_ENDIAN__ + ds->bgr = 1; +#else + ds->bgr = 0; +#endif + current_ds = *ds; } -- cgit v1.2.3