mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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
This commit is contained in:
parent
9447084492
commit
b29169d265
4 changed files with 74 additions and 8 deletions
7
cocoa.m
7
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue