提交 c7bd7bec 编写于 作者: A aliguori

Fix SDL problems with BGR displays (Avi Kivity)

revert qemu's sdl.c rev 1.40

this fixes problems with bgr displays.
Signed-off-by: NAvi Kivity <avi@qumranet.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4925 c046a42c-6fe2-441c-8c8c-71466251a162
上级 bd54b863
...@@ -89,7 +89,7 @@ static void sdl_resize(DisplayState *ds, int w, int h) ...@@ -89,7 +89,7 @@ static void sdl_resize(DisplayState *ds, int w, int h)
ds->data = screen->pixels; ds->data = screen->pixels;
ds->linesize = screen->pitch; ds->linesize = screen->pitch;
ds->depth = screen->format->BitsPerPixel; ds->depth = screen->format->BitsPerPixel;
if (screen->format->Bshift > screen->format->Rshift) { if (ds->depth == 32 && screen->format->Rshift == 0) {
ds->bgr = 1; ds->bgr = 1;
} else { } else {
ds->bgr = 0; ds->bgr = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册