From 7658eced9a45f42033c2b0b45cee70f6edb6ff20 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 24 Feb 2013 17:07:54 +0000 Subject: 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 --- src/cairo-xlib-display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c index 04c89b2a..c505db4d 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 * -- cgit v1.2.3