summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-surface.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2004-12-20 12:22:50 +0000
committerAlexander Larsson <alexl@redhat.com>2004-12-20 12:22:50 +0000
commit153bf60b3a68266196a007167fc44b7df66ee73b (patch)
tree5eca69bf04e8d20ae374d26655adf4744b27b223 /src/cairo-xlib-surface.c
parenteecfec86f1646f185555fd1fb0a65a0a345fa49a (diff)
Fix bug in earlier change.
Diffstat (limited to 'src/cairo-xlib-surface.c')
-rw-r--r--src/cairo-xlib-surface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 155911fe..92a36b2c 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -749,7 +749,9 @@ _cairo_xlib_surface_create_with_size (Display *dpy,
surface->drawable = drawable;
surface->owns_pixmap = 0;
surface->visual = visual;
-
+ surface->width = width;
+ surface->height = height;
+
if (! XRenderQueryVersion (dpy, &surface->render_major, &surface->render_minor)) {
surface->render_major = -1;
surface->render_minor = -1;