summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-09 03:41:17 +0000
committerDavid Robillard <d@drobilla.net>2011-06-09 03:41:17 +0000
commitfc57e53e2554aa1a654d66bb7b97a8738bb77fb5 (patch)
tree0376956f6b461dad39ce4e3acb4ea8a62b3f7dda /src/Patchage.cpp
parent91cdc941af88e8ba6e19673eb17825233db2218c (diff)
downloadpatchage-fc57e53e2554aa1a654d66bb7b97a8738bb77fb5.tar.gz
patchage-fc57e53e2554aa1a654d66bb7b97a8738bb77fb5.tar.bz2
patchage-fc57e53e2554aa1a654d66bb7b97a8738bb77fb5.zip
Automatically resize modules at update time as necessary.
This avoids the huge multiple resize performance problems of the past without requiring the user to manually resize modules. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3375 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 441247a..016fbbe 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -366,8 +366,6 @@ Patchage::idle_callback()
_refresh = false;
_driver_detached = false;
- flush_resize();
-
// Update load every 10 idle callbacks
static int count = 0;
if (++count == 10) {
@@ -456,8 +454,6 @@ Patchage::refresh()
if (_alsa_driver)
_alsa_driver->refresh();
#endif
-
- flush_resize();
}
}
@@ -813,22 +809,3 @@ Patchage::on_scroll(GdkEventScroll* ev)
{
return false;
}
-
-void
-Patchage::enqueue_resize(FlowCanvas::Module* module)
-{
- if (module)
- _pending_resize.insert(module);
-}
-
-void
-Patchage::flush_resize()
-{
- for (std::set<FlowCanvas::Module*>::iterator i = _pending_resize.begin();
- i != _pending_resize.end(); ++i) {
- (*i)->resize();
- }
-
- _pending_resize.clear();
-}
-