mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03: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
2
sdl.c
2
sdl.c
|
@ -87,7 +87,7 @@ static void sdl_resize(DisplayState *ds, int w, int h)
|
|||
ds->data = screen->pixels;
|
||||
ds->linesize = screen->pitch;
|
||||
ds->depth = screen->format->BitsPerPixel;
|
||||
if (ds->depth == 32 && screen->format->Rshift == 0) {
|
||||
if (screen->format->Bshift > screen->format->Rshift) {
|
||||
ds->bgr = 1;
|
||||
} else {
|
||||
ds->bgr = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue