summaryrefslogtreecommitdiff
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
parenteecfec86f1646f185555fd1fb0a65a0a345fa49a (diff)
Fix bug in earlier change.
-rw-r--r--ChangeLog5
-rw-r--r--src/cairo-xlib-surface.c4
-rw-r--r--src/cairo_xlib_surface.c4
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 43bfbb81..395e9e49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-20 Alexander Larsson <alexl@redhat.com>
+
+ * src/cairo_xlib_surface.c (_cairo_xlib_surface_create_with_size):
+ Fix bug in earlier change.
+
2004-12-20 Carl Worth <cworth@cworth.org>
* src/cairoint.h: Re-enabled __internal_linkage for all internal
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;
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;