From 1ca24746c2333e5fd95e364ab1c2febc421cd9a9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 Feb 2008 20:33:15 +0000 Subject: Fix window size/positioning. git-svn-id: http://svn.drobilla.net/lad/patchage@1156 a436a847-0d15-0410-975c-d299462d15a1 --- src/Patchage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Patchage.cpp b/src/Patchage.cpp index e41b875..71b4eb7 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -230,6 +230,8 @@ Patchage::Patchage(int argc, char** argv) _canvas->show(); _main_win->present(); + _state_manager->load(_settings_filename); + _main_win->resize( static_cast(_state_manager->get_window_size().x), static_cast(_state_manager->get_window_size().y)); @@ -246,8 +248,6 @@ Patchage::Patchage(int argc, char** argv) #ifdef HAVE_ALSA _alsa_driver = new AlsaDriver(this); #endif - - _state_manager->load(_settings_filename); #ifdef HAVE_LASH _lash_driver = new LashDriver(this, argc, argv); -- cgit v1.2.1