summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-03 22:24:22 +0000
committerDavid Robillard <d@drobilla.net>2006-10-03 22:24:22 +0000
commit9c7f679baa39d7772f9b66a65b48d37ba540fbba (patch)
treee5c543bafdd65b43cd96d2320b8abe7e37d9ee6d /src/PatchageModule.h
parent960edd8f434bd6bedb6f635bc3cedeae9dbbb1e0 (diff)
downloadpatchage-9c7f679baa39d7772f9b66a65b48d37ba540fbba.tar.gz
patchage-9c7f679baa39d7772f9b66a65b48d37ba540fbba.tar.bz2
patchage-9c7f679baa39d7772f9b66a65b48d37ba540fbba.zip
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
Diffstat (limited to 'src/PatchageModule.h')
-rw-r--r--src/PatchageModule.h6
1 files changed, 3 insertions, 3 deletions
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() {