diff options
author | Uli Schlachter <psychon@znc.in> | 2011-06-13 11:25:04 +0200 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2011-06-24 15:24:09 +0200 |
commit | cb3d91201c3de6c9cd1fd97b8471d322b75eec5a (patch) | |
tree | b50aca18b5e2a9add15bac8df63b9d3e9b58f6b4 /src/cairo-xcb-connection.c | |
parent | d938e744461f78d9030659b6672a79f06aaa12f8 (diff) |
xcb: Don't hardcode the RENDER version number
This now uses the macros XCB_RENDER_{MAJOR,MINOR}_VERSION which xcb defines.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/cairo-xcb-connection.c')
-rw-r--r-- | src/cairo-xcb-connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xcb-connection.c b/src/cairo-xcb-connection.c index d6f355bf..48307889 100644 --- a/src/cairo-xcb-connection.c +++ b/src/cairo-xcb-connection.c @@ -327,7 +327,7 @@ _cairo_xcb_connection_query_render (cairo_xcb_connection_t *connection) cairo_status_t status; cairo_bool_t present; - version_cookie = xcb_render_query_version (c, 0, 10); + version_cookie = xcb_render_query_version (c, XCB_RENDER_MAJOR_VERSION, XCB_RENDER_MINOR_VERSION); formats_cookie = xcb_render_query_pict_formats (c); present = has_required_depths (connection); |