summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-24 17:07:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-24 17:07:54 +0000
commit7658eced9a45f42033c2b0b45cee70f6edb6ff20 (patch)
tree068ca9fd0102380a46b76feea29d8300f6fac1bf
parent446a3dc5c0298e35b9a1e38460bc3804ab6e01ce (diff)
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@chris-wilson.co.uk>
-rw-r--r--src/cairo-xlib-display.c2
1 files changed, 1 insertions, 1 deletions
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 *