diff options
author | David Robillard <d@drobilla.net> | 2013-02-03 22:29:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-03 22:29:15 +0000 |
commit | 6ddaa0260c4749aa6c0395000381d7df0bd3feb1 (patch) | |
tree | 00024d5d970317292355b663383b43d151c6757b /src/box.c | |
parent | 39b748a4836d6220922867eae0dd5339792033ab (diff) | |
download | ganv-6ddaa0260c4749aa6c0395000381d7df0bd3feb1.tar.gz ganv-6ddaa0260c4749aa6c0395000381d7df0bd3feb1.tar.bz2 ganv-6ddaa0260c4749aa6c0395000381d7df0bd3feb1.zip |
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
Diffstat (limited to 'src/box.c')
-rw-r--r-- | src/box.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |