diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-06-10 16:07:38 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-06-10 16:07:38 +0000 |
commit | b29169d2654776e749de91d65c720003ab4a2e66 (patch) | |
tree | f0ad8e3371cf3dac85e8d608d0a45a9dbe3157e8 /cocoa.m | |
parent | 9447084492da7ca69ce0c16a35971157f690e631 (diff) |
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
Diffstat (limited to 'cocoa.m')
-rw-r--r-- | cocoa.m | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; } |