diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-04-23 21:02:59 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-04-23 21:02:59 +0200 |
commit | 16328d20357a8bc4630656af350772b0bd14f8f1 (patch) | |
tree | e5d9cb9a2c9d37e92f8a3e1e42d086e486cb3f5c /common | |
parent | a1ec6e065a1d39426949a322eeb67f8fb9f854e5 (diff) | |
download | spice-16328d20357a8bc4630656af350772b0bd14f8f1.tar.gz spice-16328d20357a8bc4630656af350772b0bd14f8f1.tar.xz spice-16328d20357a8bc4630656af350772b0bd14f8f1.zip |
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.
Diffstat (limited to 'common')
-rw-r--r-- | common/cairo_canvas.c | 7 |
1 files changed, 0 insertions, 7 deletions
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); |