From 9c7f679baa39d7772f9b66a65b48d37ba540fbba Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 3 Oct 2006 22:24:22 +0000 Subject: shared_ptr bugfixes. Updated Ingen to work with new FlowCanvas. Updated Patchage to work with new(er) FlowCanvas. git-svn-id: http://svn.drobilla.net/lad/patchage@152 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageModule.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PatchageModule.h') diff --git a/src/PatchageModule.h b/src/PatchageModule.h index 58fa096..f58948d 100644 --- a/src/PatchageModule.h +++ b/src/PatchageModule.h @@ -35,7 +35,7 @@ class PatchageModule : public Module { public: PatchageModule(Patchage* app, const string& title, ModuleType type, double x=0, double y=0) - : Module(*app->canvas(), title, x, y), + : Module(app->canvas(), title, x, y), m_app(app), m_type(type) { @@ -79,8 +79,8 @@ public: if (loc.x != -1) move_to(loc.x, loc.y); else - move_to((m_canvas.width()/2) - 100 + rand() % 400, - (m_canvas.height()/2) - 100 + rand() % 400); + move_to((m_canvas.lock()->width()/2) - 100 + rand() % 400, + (m_canvas.lock()->height()/2) - 100 + rand() % 400); } void split() { -- cgit v1.2.1