[librsvg] Pass pointer to struct



commit c526ba05867cbc791e0e116d7ceb42444966e123
Author: Christian Persch <chpe gnome org>
Date:   Fri Sep 16 01:24:03 2011 +0200

    Pass pointer to struct

 rsvg-filter.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/rsvg-filter.c b/rsvg-filter.c
index fe694c4..500679c 100644
--- a/rsvg-filter.c
+++ b/rsvg-filter.c
@@ -217,14 +217,14 @@ gdk_pixbuf_get_interp_pixel (guchar * src, gdouble ox, gdouble oy, guchar ch, Rs
 }
 
 static void
-rsvg_filter_fix_coordinate_system (RsvgFilterContext * ctx, RsvgState * state, RsvgBbox bbox)
+rsvg_filter_fix_coordinate_system (RsvgFilterContext * ctx, RsvgState * state, RsvgBbox *bbox)
 {
     int x, y, height, width;
 
-    x = bbox.rect.x;
-    y = bbox.rect.y;
-    width = bbox.rect.width;
-    height = bbox.rect.height;
+    x = bbox->rect.x;
+    y = bbox->rect.y;
+    width = bbox->rect.width;
+    height = bbox->rect.height;
 
     ctx->width = gdk_pixbuf_get_width (ctx->source);
     ctx->height = gdk_pixbuf_get_height (ctx->source);
@@ -482,7 +482,7 @@ rsvg_filter_render (RsvgFilter * self, GdkPixbuf * source,
 
     g_object_ref (source);
 
-    rsvg_filter_fix_coordinate_system (ctx, rsvg_current_state (context), *bounds);
+    rsvg_filter_fix_coordinate_system (ctx, rsvg_current_state (context), bounds);
 
     ctx->lastresult.result = source;
     ctx->lastresult.Rused = 1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]