summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-hit.h
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-04-17 21:27:33 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-04-17 21:27:33 +0000
commitaccc73a8c15ce9b86db269a52a132a88e9f17da2 (patch)
tree73f918e86efcd35ad8f361882f2db527d026dff8 /gtk2_ardour/canvas-hit.h
parent7ba87f7672caf9a0ae395e895c1ca50543442636 (diff)
* fixed missing get coordinate functions in CanvasHit
* Fixed crash bug when NoteMode = Percussive on MidiRegionView * Fixed possible MemoryLeaks and added Signal in MidiMultipleChannelSelector git-svn-id: svn://localhost/ardour2/branches/3.0@3263 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-hit.h')
-rw-r--r--gtk2_ardour/canvas-hit.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk2_ardour/canvas-hit.h b/gtk2_ardour/canvas-hit.h
index 9a65f8067a..e9be381ef2 100644
--- a/gtk2_ardour/canvas-hit.h
+++ b/gtk2_ardour/canvas-hit.h
@@ -39,11 +39,10 @@ public:
{
}
- // FIXME
- double x1() { return 0.0; }
- double y1() { return 0.0; }
- double x2() { return 0.0; }
- double y2() { return 0.0; }
+ double x1() { double x1, y1, x2, y2; get_bounds(x1,y1,x2,y2); return x1; }
+ double y1() { double x1, y1, x2, y2; get_bounds(x1,y1,x2,y2); return y1; }
+ double x2() { double x1, y1, x2, y2; get_bounds(x1,y1,x2,y2); return x2; }
+ double y2() { double x1, y1, x2, y2; get_bounds(x1,y1,x2,y2); return y2; }
void set_outline_color(uint32_t c) { property_outline_color_rgba() = c; }
void set_fill_color(uint32_t c) { property_fill_color_rgba() = c; }