spice/client/gui
Alexander Larsson 774e5bd36f Client: Support pixmap format conversion in copy_pixels
In order to be able to support 16bit canvases on 32bit screens and 32bit
canvases on 16bit screens we need to handle format conversion when drawing
RedPixmaps.

The way this works now for X11 is that we only have one PIXELS_SOURCE_TYPE
for pixmaps, which always has a pixman_image_t for the data, but additionally
it has an XImage (shared mem or not) if the screen the pixmap was created
for (i.e. an explicit one or the default screen) has the same format as
the pixmap.

When we draw a pixmap on a drawable we have two variants. If the pixmap
has a XImage and it matches the format of the target drawable then we
just X(Shm)PutImage it to the drawable. If the formats differ, then we
create a temporary XImage and convert into that before drawing it to
the screen.

Right now this is a bit inefficient, because we always allocate a new
temporary image when converting. We want to add some caching here, but
at least this lets things work again.
2010-04-23 16:39:13 +02:00
..
commonv2c.ttf.c client: add gui res files 2009-12-28 12:38:03 +02:00
commonwealth-10.font.c client: add gui res files 2009-12-28 12:38:03 +02:00
dejavu_sans-10.font.c client: add gui res files 2009-12-28 12:38:03 +02:00
dejavu_sans.ttf.c client: add gui res files 2009-12-28 12:38:03 +02:00
gui.cpp Client: Support pixmap format conversion in copy_pixels 2010-04-23 16:39:13 +02:00
gui.h client: let PreLoginDialog save and restore LoginDialog 2009-12-28 16:44:38 +02:00
resource_provider.cpp Revert automatic renames that were wrong 2010-02-04 18:49:05 +01:00
resource_provider.h Revert automatic renames that were wrong 2010-02-04 18:49:05 +01:00
softrenderer.cpp Revert automatic renames that were wrong 2010-02-04 18:49:05 +01:00
softrenderer.h Revert automatic renames that were wrong 2010-02-04 18:49:05 +01:00
softtexture.cpp Revert automatic renames that were wrong 2010-02-04 18:49:05 +01:00
softtexture.h Revert automatic renames that were wrong 2010-02-04 18:49:05 +01:00
taharez_look.imageset.c client: add gui res files 2009-12-28 12:38:03 +02:00
taharez_look.looknfeel.c client: add gui res files 2009-12-28 12:38:03 +02:00
taharez_look.scheme.c client: add gui res files 2009-12-28 12:38:03 +02:00
taharez_look.tga.c client: add gui res files 2009-12-28 12:38:03 +02:00