[cairo] [PATCH 06/39] [OpenVG] added functionality to get_extents callback.

tardyp at gmail.com tardyp at gmail.com
Fri Jul 10 10:02:08 PDT 2009


From: Øyvind Kolås <pippin at gimp.org>

---
 src/cairo-openvg-surface.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/cairo-openvg-surface.c b/src/cairo-openvg-surface.c
index 690b3a9..3723a9b 100644
--- a/src/cairo-openvg-surface.c
+++ b/src/cairo-openvg-surface.c
@@ -81,10 +81,12 @@ static cairo_int_status_t
 _cairo_openvg_surface_get_extents (void *asurface,
                                 cairo_rectangle_int_t *extents)
 {
+    cairo_openvg_surface_t *s = asurface;
+
     extents->x = 0;
     extents->y = 0;
-    extents->width = 0;
-    extents->height = 0;
+    extents->width = s->width;
+    extents->height = s->height;
 
     return CAIRO_STATUS_SUCCESS;
 }
-- 
1.6.0.4



More information about the cairo mailing list