[cairo-commit] src/cairo-xlib-surface.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Apr 25 12:57:14 PDT 2012


 src/cairo-xlib-surface.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit fe428fc7f03316f2577b95f6a4f525bacca09948
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Apr 20 17:30:22 2012 +0100

    xlib: Fix inline conversion for TrueColor PutImage
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 95fadac..ac0cf7c 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -1047,8 +1047,7 @@ _cairo_xlib_surface_draw_image (cairo_xlib_surface_t   *surface,
 	ret = XInitImage (&ximage);
 	assert (ret != 0);
     }
-    else if (!is_rgb_image ||
-	     (surface->visual == NULL || surface->visual->class == TrueColor))
+    else if (surface->visual == NULL || surface->visual->class == TrueColor)
     {
         pixman_format_code_t intermediate_format;
         int ret;


More information about the cairo-commit mailing list