From 8efff32d97b1b578f8c42fe2db7b30cfc44ecf2f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 23 Feb 2008 03:47:39 +0000 Subject: Fix drawing issues on refresh. git-svn-id: http://svn.drobilla.net/lad/patchage@1158 a436a847-0d15-0410-975c-d299462d15a1 --- src/Patchage.cpp | 18 +++++------------- 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) { -- cgit v1.2.1