diff options
author | David Robillard <d@drobilla.net> | 2008-02-23 03:47:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-23 03:47:39 +0000 |
commit | 8efff32d97b1b578f8c42fe2db7b30cfc44ecf2f (patch) | |
tree | 0120f5c4c27040c64806a57752a71f1cddc1263c | |
parent | 1ca24746c2333e5fd95e364ab1c2febc421cd9a9 (diff) | |
download | patchage-8efff32d97b1b578f8c42fe2db7b30cfc44ecf2f.tar.gz patchage-8efff32d97b1b578f8c42fe2db7b30cfc44ecf2f.tar.bz2 patchage-8efff32d97b1b578f8c42fe2db7b30cfc44ecf2f.zip |
Fix drawing issues on refresh.
git-svn-id: http://svn.drobilla.net/lad/patchage@1158 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/Patchage.cpp | 18 | ||||
-rw-r--r-- | src/PatchageEvent.cpp | 2 |
2 files changed, 6 insertions, 14 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 71b4eb7..ec958a1 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -329,24 +329,16 @@ Patchage::idle_callback() } #endif - // Do a full refresh (ie user clicked refresh) - if (_refresh) { - _canvas->destroy(); - _jack_driver->refresh(); -#ifdef HAVE_ALSA - if (_alsa_driver) - _alsa_driver->refresh(); -#endif - _refresh = false; - } - #ifdef HAVE_LASH if (_lash_driver->is_attached()) _lash_driver->process_events(); #endif - if (_refresh) + // Do a full refresh (ie user clicked refresh) + if (_refresh) { + refresh(); _refresh = false; + } update_load(); @@ -410,7 +402,7 @@ Patchage::refresh() assert(_canvas); if (_enable_refresh) { - + _canvas->destroy(); if (_jack_driver) diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index 5b63486..3f03208 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -62,7 +62,7 @@ PatchageEvent::execute(Patchage* patchage) assert(module); module->remove_port(port); - port->hide(); + port.reset(); // No empty modules (for now) if (module->num_ports() == 0) { |