From 16328d20357a8bc4630656af350772b0bd14f8f1 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 23 Apr 2010 21:02:59 +0200 Subject: 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. --- common/cairo_canvas.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'common') diff --git a/common/cairo_canvas.c b/common/cairo_canvas.c index a324c446..358b036b 100644 --- a/common/cairo_canvas.c +++ b/common/cairo_canvas.c @@ -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); -- cgit