summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-29 02:03:55 +0000
committerDavid Robillard <d@drobilla.net>2011-11-29 02:03:55 +0000
commit583a65a259c568b22526c581f50ef89aea9698eb (patch)
tree8543a2bc8ba09631913b7454070d1ecfad5e51c7 /src/PatchageModule.cpp
parent744ca0bbcc3d3f5e53dcdbc436c676fd4f8cc6af (diff)
downloadpatchage-583a65a259c568b22526c581f50ef89aea9698eb.tar.gz
patchage-583a65a259c568b22526c581f50ef89aea9698eb.tar.bz2
patchage-583a65a259c568b22526c581f50ef89aea9698eb.zip
Remove all centering stuff. Nothing but trouble.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3686 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageModule.cpp')
-rw-r--r--src/PatchageModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp
index f9f557b..4254015 100644
--- a/src/PatchageModule.cpp
+++ b/src/PatchageModule.cpp
@@ -90,8 +90,8 @@ PatchageModule::load_location()
if (_app->state_manager()->get_module_location(_name, _type, loc))
move_to(loc.x, loc.y);
else
- move_to((_canvas->width()/2) - 100 + rand() % 400,
- (_canvas->height()/2) - 100 + rand() % 400);
+ move_to(20 + rand() % 640,
+ 20 + rand() % 480);
}
void