aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-10 23:24:39 +0000
committerDavid Robillard <d@drobilla.net>2012-04-10 23:24:39 +0000
commit6e771526106e8e1635b462064ad375ecda0b177a (patch)
tree333f19b42938174a9f6de284b3df3e314ca8b26a /src/state.c
parent34b66b65a9c212bc13d62fdfbfcd4be198141e0f (diff)
downloadjalv-6e771526106e8e1635b462064ad375ecda0b177a.tar.gz
jalv-6e771526106e8e1635b462064ad375ecda0b177a.tar.bz2
jalv-6e771526106e8e1635b462064ad375ecda0b177a.zip
Make controls update when changing presets (except combos).
Fix scale point value bug. Fix memory leaks. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4158 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index 8c60776..a75ef3b 100644
--- a/src/state.c
+++ b/src/state.c
@@ -148,7 +148,7 @@ set_port_value(const char* port_symbol,
jalv_ui_write(jalv, port->index, sizeof(fvalue), 0, &fvalue);
// Update UI
- if (jalv->ui) {
+ if (jalv->has_ui) {
char buf[sizeof(ControlChange) + sizeof(fvalue)];
ControlChange* ev = (ControlChange*)buf;
ev->index = port->index;