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

Chris Wilson ickle at kemper.freedesktop.org
Sun Feb 24 09:09:44 PST 2013


 src/cairo-xlib-display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7658eced9a45f42033c2b0b45cee70f6edb6ff20
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sun Feb 24 17:07:54 2013 +0000

    xlib: Fix invocation of XRenderFindFormat()
    
    The 'count' parameter is an indication to libXrender of the number of
    matches to skip before reporting (rather than a limit on the number to
    report). As we only want the first match, always pass 0.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c
index 04c89b2..c505db4 100644
--- a/src/cairo-xlib-display.c
+++ b/src/cairo-xlib-display.c
@@ -482,7 +482,7 @@ _cairo_xlib_display_get_xrender_format_for_pixman(cairo_xlib_display_t *display,
 #undef MASK
 
     /* XXX caching? */
-    return XRenderFindFormat(dpy, mask, &tmpl, 1);
+    return XRenderFindFormat(dpy, mask, &tmpl, 0);
 }
 
 XRenderPictFormat *


More information about the cairo-commit mailing list