diff options
author | David Robillard <d@drobilla.net> | 2014-01-11 22:35:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-01-11 22:35:56 +0000 |
commit | 2c07b0df01c7b8ca9e9d5ea1730b09ca3cf801de (patch) | |
tree | e1a58dd99261b26be3bfbe8090afe3f0e78784b6 /src/box.c | |
parent | afdb578607526ca82cf03ec04cb4f410f11692c1 (diff) | |
download | ganv-2c07b0df01c7b8ca9e9d5ea1730b09ca3cf801de.tar.gz ganv-2c07b0df01c7b8ca9e9d5ea1730b09ca3cf801de.tar.bz2 ganv-2c07b0df01c7b8ca9e9d5ea1730b09ca3cf801de.zip |
Merge GanvCanvasBase and GanvCanvas.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5302 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
@@ -153,7 +153,7 @@ ganv_box_request_redraw(GanvItem* item, ganv_item_i2w_pair(item, &x1, &y1, &x2, &y2); } - ganv_canvas_base_request_redraw(item->canvas, x1, y1, x2, y2); + ganv_canvas_request_redraw(item->canvas, x1, y1, x2, y2); } static void @@ -198,8 +198,8 @@ ganv_box_update(GanvItem* item, int flags) ganv_item_i2w_pair(item, &x1, &y1, &x2, &y2); // Update item canvas coordinates - ganv_canvas_base_w2c_d(GANV_CANVAS_BASE(item->canvas), x1, y1, &item->x1, &item->y1); - ganv_canvas_base_w2c_d(GANV_CANVAS_BASE(item->canvas), x2, y2, &item->x2, &item->y2); + ganv_canvas_w2c_d(item->canvas, x1, y1, &item->x1, &item->y1); + ganv_canvas_w2c_d(item->canvas, x2, y2, &item->x2, &item->y2); // Request redraw of new location ganv_box_request_redraw(item, &impl->coords, FALSE); @@ -337,9 +337,9 @@ ganv_box_is_within(const GanvNode* self, ganv_item_i2w_pair(GANV_ITEM(self), &bx1, &by1, &bx2, &by2); return ( bx1 >= x1 - && by2 >= y1 - && bx2 <= x2 - && by2 <= y2); + && by2 >= y1 + && bx2 <= x2 + && by2 <= y2); } static void |