[librsvg/next: 23/31] Pass pointer to struct
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/next: 23/31] Pass pointer to struct
- Date: Fri, 21 Oct 2011 21:22:47 +0000 (UTC)
commit 5c7326a0ff0f0e0f7d16e437860fac50422082d4
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]