diff options
author | Alexander Larsson <alexl@redhat.com> | 2004-12-20 12:22:50 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2004-12-20 12:22:50 +0000 |
commit | 153bf60b3a68266196a007167fc44b7df66ee73b (patch) | |
tree | 5eca69bf04e8d20ae374d26655adf4744b27b223 | |
parent | eecfec86f1646f185555fd1fb0a65a0a345fa49a (diff) |
Fix bug in earlier change.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/cairo-xlib-surface.c | 4 | ||||
-rw-r--r-- | src/cairo_xlib_surface.c | 4 |
3 files changed, 11 insertions, 2 deletions
@@ -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; |