diff options
author | David Robillard <d@drobilla.net> | 2012-03-28 04:26:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-28 04:26:07 +0000 |
commit | 791587fe9408856a658e5780f0dc5b9231f6c021 (patch) | |
tree | 7a4c8d1fd0ef428ff8a7db245a1ee20a87cf53c4 /src/node.c | |
parent | 97ede5001777de4bb36491f4f2571b2037eb0cda (diff) | |
download | ganv-791587fe9408856a658e5780f0dc5b9231f6c021.tar.gz ganv-791587fe9408856a658e5780f0dc5b9231f6c021.tar.bz2 ganv-791587fe9408856a658e5780f0dc5b9231f6c021.zip |
Fix control rect colour and label stacking.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4124 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -109,13 +109,10 @@ ganv_node_draw(GanvItem* item, int cx, int cy, int width, int height) { - GanvNode* node = GANV_NODE(item); - - // Draw label - if (node->impl->label) { - GanvItem* label_item = GANV_ITEM(node->impl->label); - GANV_ITEM_GET_CLASS(label_item)->draw(label_item, cr, cx, cy, width, height); - } + /* TODO: Label is not drawn here because ports need to draw control + rects then the label on top. I can't see a way of solving this since + there's no single time parent class draw needs to be called, so perhaps + label shouldn't be part of this class... */ } static void |