summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2011-06-24 15:52:59 +0200
committerUli Schlachter <psychon@znc.in>2011-06-24 15:52:59 +0200
commit144c912860af6e60e1bdbeee31fe686c9c5e550d (patch)
tree3da3994f821153055a0f55cf5901332b421645e1
parentd246d97592fc9df7ac914e1f97e2d834c7b975a5 (diff)
xcb: Initialize the new precision fields
In 63bdae27a83, new fields were added to cairo_xcb_connection_t and cairo_xcb_surface_t. The same change was done in the xlib backend. However, in the xlib backend these new fields were properly initialized. This was forgotten in the xcb backend. Hopefully-Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=38482 Signed-off-by: Uli Schlachter <psychon@znc.in>
-rw-r--r--src/cairo-xcb-connection.c1
-rw-r--r--src/cairo-xcb-surface.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-xcb-connection.c b/src/cairo-xcb-connection.c
index 48307889..0c3bd5ae 100644
--- a/src/cairo-xcb-connection.c
+++ b/src/cairo-xcb-connection.c
@@ -665,6 +665,7 @@ _cairo_xcb_connection_get (xcb_connection_t *xcb_connection)
CAIRO_MUTEX_LOCK (connection->device.mutex);
connection->flags = 0;
+ connection->force_precision = -1;
xcb_prefetch_extension_data (xcb_connection, &xcb_big_requests_id);
xcb_prefetch_extension_data (xcb_connection, &xcb_render_id);
diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c
index a711d123..fec7b75b 100644
--- a/src/cairo-xcb-surface.c
+++ b/src/cairo-xcb-surface.c
@@ -1087,6 +1087,7 @@ _cairo_xcb_surface_create_internal (cairo_xcb_screen_t *screen,
surface->depth = PIXMAN_FORMAT_DEPTH (pixman_format);
surface->picture = XCB_NONE;
+ surface->precision = 0;
surface->pixman_format = pixman_format;
surface->xrender_format = xrender_format;