]> xenbits.xen.org Git - xenclient/ioemu.git/commit
remove bgr (Stefano Stabellini)
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 10 Mar 2009 17:59:47 +0000 (17:59 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 10 Mar 2009 17:59:47 +0000 (17:59 +0000)
commit3658cde026d24991564356ba3a4e06cda64cb86e
treea988f88a944a155fa2aea700e866354bd9226510
parentc7adf58444aedd7fe4c545282c303b73216da157
remove bgr (Stefano Stabellini)

Do not handle bgr host displays in the backends.

Right now a bgr flag exists so that sdl can set it, if the SDL_Surface
is bgr.
Afterwards the graphic device (e.g. vga.c) does the needed conversion.

With this patch series is sdl that is responsible for rendering the format
provided by the graphic device that must provide a DisplaySurface
(ds->surface) in 16 or 32 bpp, rgb.
Afterwards sdl creates a SDL_Surface from the given DisplaySurface and
blits it into the main SDL_Surface using SDL_BlitSurface.

Everything is handled by sdl transparently, because SDL_BlitSurface is
perfectly capable of handling bgr displays by itself.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Patch adapted for qemu-xen-unstable by Stefano Stabellini.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/musicpal.c
hw/tcx.c
hw/vga.c
sdl.c