From 6ddaa0260c4749aa6c0395000381d7df0bd3feb1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Feb 2013 22:29:15 +0000 Subject: Port control performance improvements (further improvement for #879). Only request a redraw, not a full update, where appropriate. Use a raw double instead of GVariant for port control-changed signal. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5045 a436a847-0d15-0410-975c-d299462d15a1 --- src/box.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/box.c') diff --git a/src/box.c b/src/box.c index c41f5ed..9ad67b5 100644 --- a/src/box.c +++ b/src/box.c @@ -145,10 +145,10 @@ ganv_box_bounds_item(const GanvBoxCoords* coords, } } -static void -request_redraw(GanvItem* item, - const GanvBoxCoords* coords, - gboolean world) +void +ganv_box_request_redraw(GanvItem* item, + const GanvBoxCoords* coords, + gboolean world) { double x1, y1, x2, y2; ganv_box_bounds_item(coords, &x1, &y1, &x2, &y2); @@ -189,7 +189,7 @@ ganv_box_update(GanvItem* item, int flags) impl->coords.border_width = box->node.impl->border_width; // Request redraw of old location - request_redraw(item, &impl->old_coords, TRUE); + ganv_box_request_redraw(item, &impl->old_coords, TRUE); GanvItemClass* item_class = GANV_ITEM_CLASS(parent_class); item_class->update(item, flags); @@ -208,7 +208,7 @@ ganv_box_update(GanvItem* item, int flags) ganv_canvas_base_w2c_d(GANV_CANVAS_BASE(item->canvas), x2, y2, &item->x2, &item->y2); // Request redraw of new location - request_redraw(item, &impl->coords, FALSE); + ganv_box_request_redraw(item, &impl->coords, FALSE); } static void -- cgit v1.2.1