From 583a65a259c568b22526c581f50ef89aea9698eb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 29 Nov 2011 02:03:55 +0000 Subject: Remove all centering stuff. Nothing but trouble. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3686 a436a847-0d15-0410-975c-d299462d15a1 --- src/Patchage.cpp | 1 - src/PatchageModule.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 2aad750..13edebe 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -304,7 +304,6 @@ Patchage::idle_callback() // Initial run, attach if (_attach) { attach(); - _canvas->scroll_to_center(); _attach = false; } 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 -- cgit v1.2.1