diff options
-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; |