[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1399957] Re: Strange colors on PowerMac Machine OsX
From: |
luigiburdo |
Subject: |
[Qemu-devel] [Bug 1399957] Re: Strange colors on PowerMac Machine OsX |
Date: |
Sun, 07 Dec 2014 11:49:27 -0000 |
PMM i found the problem it is because big endian sdl and was fixed in some
other programams with this
like i write before on 8 bit std no problem when i swap to 16 bit and up i
have wrong colors.
/* The MacOS X port of SDL lies about it's default pixel format
* for high-colour display. It's always R5G5B5. */
Here a code example :
#ifdef WORDS_BIGENDIAN
if (fmt->BitsPerPixel == 24) {
if (fmt->Rmask == 0x00FF0000 && fmt->Gmask == 0x0000FF00 && fmt->Bmask
== 0x000000FF)
return RGBFB_R8G8B8;
if (fmt->Rmask == 0x000000FF && fmt->Gmask == 0x0000FF00 && fmt->Bmask
== 0x00FF0000)
return RGBFB_B8G8R8;
} else if (fmt->BitsPerPixel == 32) {
if (fmt->Rmask == 0xFF000000 && fmt->Gmask == 0x00FF0000 && fmt->Bmask
== 0x0000FF00)
return RGBFB_R8G8B8A8;
if (fmt->Rmask == 0x00FF0000 && fmt->Gmask == 0x0000FF00 && fmt->Bmask
== 0x000000FF)
return RGBFB_A8R8G8B8;
if (fmt->Bmask == 0x00FF0000 && fmt->Gmask == 0x0000FF00 && fmt->Rmask
== 0x000000FF)
return RGBFB_A8B8G8R8;
if (fmt->Bmask == 0xFF000000 && fmt->Gmask == 0x00FF0000 && fmt->Rmask
== 0x0000FF00)
return RGBFB_B8G8R8A8;
} else if (fmt->BitsPerPixel == 16) {
if (get_sdlgfx_type () == SDLGFX_DRIVER_QUARTZ) {
/* The MacOS X port of SDL lies about it's default pixel format
* for high-colour display. It's always R5G5B5. */
return RGBFB_R5G5B5;
} else {
if (fmt->Rmask == 0xf800 && fmt->Gmask == 0x07e0 && fmt->Bmask ==
0x001f)
return RGBFB_R5G6B5;
if (fmt->Rmask == 0x7C00 && fmt->Gmask == 0x03e0 && fmt->Bmask ==
0x001f)
return RGBFB_R5G5B5;
}
} else if (fmt->BitsPerPixel == 15) {
if (fmt->Rmask == 0x7C00 && fmt->Gmask == 0x03e0 && fmt->Bmask ==
0x001f)
return RGBFB_R5G5B5;
}
#else
if (fmt->BitsPerPixel == 24) {
if (fmt->Rmask == 0x00FF0000 && fmt->Gmask == 0x0000FF00 && fmt->Bmask
== 0x000000FF)
return RGBFB_B8G8R8;
if (fmt->Rmask == 0x000000FF && fmt->Gmask == 0x0000FF00 && fmt->Bmask
== 0x00FF0000)
return RGBFB_R8G8B8;
} else if (fmt->BitsPerPixel == 32) {
if (fmt->Rmask == 0xFF000000 && fmt->Gmask == 0x00FF0000 && fmt->Bmask
== 0x0000FF00)
return RGBFB_A8B8G8R8;
if (fmt->Rmask == 0x00FF0000 && fmt->Gmask == 0x0000FF00 && fmt->Bmask
== 0x000000FF)
return RGBFB_B8G8R8A8;
if (fmt->Bmask == 0x00FF0000 && fmt->Gmask == 0x0000FF00 && fmt->Rmask
== 0x000000FF)
return RGBFB_R8G8B8A8;
if (fmt->Bmask == 0xFF000000 && fmt->Gmask == 0x00FF0000 && fmt->Rmask
== 0x0000FF00)
return RGBFB_A8R8G8B8;
} else if (fmt->BitsPerPixel == 16) {
if (fmt->Rmask == 0xf800 && fmt->Gmask == 0x07e0 && fmt->Bmask ==
0x001f)
return RGBFB_R5G6B5PC;
if (fmt->Rmask == 0x7C00 && fmt->Gmask == 0x03e0 && fmt->Bmask ==
0x001f)
return RGBFB_R5G5B5PC;
} else if (fmt->BitsPerPixel == 15) {
if (fmt->Rmask == 0x7C00 && fmt->Gmask == 0x03e0 && fmt->Bmask ==
0x001f)
return RGBFB_R5G5B5PC;
}
#endif
return RGBFB_NONE;
}
#endif
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1399957
Title:
Strange colors on PowerMac Machine OsX
Status in QEMU:
New
Bug description:
Strange colors on PowerMac Machine OsX
if it used VmWare or Std i have strange color palette as result.
I had benn made a grab of screen here
http://i1249.photobucket.com/albums/hh511/tlosm/qyellow_zps1d2dfc18.jpg
My Machine is a PowerMac G5 Quad with Nvidia 7800Gtx 512mb
thankyou
Luigi
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1399957/+subscriptions
[Prev in Thread] |
Current Thread |
[Next in Thread] |