[Spice-commits] common/cairo_canvas.c
Alexander Larsson
alexl at kemper.freedesktop.org
Fri Apr 23 12:03:50 PDT 2010
common/cairo_canvas.c | 7 -------
1 file changed, 7 deletions(-)
New commits:
commit 16328d20357a8bc4630656af350772b0bd14f8f1
Author: Alexander Larsson <alexl at redhat.com>
Date: Fri Apr 23 21:02:59 2010 +0200
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.
diff --git a/common/cairo_canvas.c b/common/cairo_canvas.c
index a324c44..358b036 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);
More information about the Spice-commits
mailing list