Remove surface format workaround now that win32 driver is fixed

The win32 driver makes all 32bit surfaces be xRGB now, so we
can remove this old workaround.
This commit is contained in:
Alexander Larsson 2010-04-23 21:02:59 +02:00
parent ec9069c84b
commit 8650d04aee

View File

@ -1162,9 +1162,6 @@ SpiceCanvas *canvas_create(int width, int height, uint32_t format
{
pixman_image_t *image;
if (format == SPICE_SURFACE_FMT_32_ARGB) {
format = SPICE_SURFACE_FMT_32_xRGB;
}
image = pixman_image_create_bits(spice_surface_format_to_pixman (format),
width, height, NULL, 0);
@ -1200,10 +1197,6 @@ SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format,
{
pixman_image_t *image;
if (format == SPICE_SURFACE_FMT_32_ARGB) {
format = SPICE_SURFACE_FMT_32_xRGB;
}
image = pixman_image_create_bits(spice_surface_format_to_pixman (format),
width, height, (uint32_t *)data, stride);