diff options
author | David Robillard <d@drobilla.net> | 2014-03-31 02:28:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-03-31 02:28:26 +0000 |
commit | 1f22a1e6dce27a9ce1b4ccd434be371994ae14e6 (patch) | |
tree | ee79055878fd8b2b12ea3e90ed2e8d1ba12ebf3c /src/JackDriver.cpp | |
parent | 59780bd8f9abf376a79ee192325ae868df7d1b5a (diff) | |
download | patchage-1f22a1e6dce27a9ce1b4ccd434be371994ae14e6.tar.gz patchage-1f22a1e6dce27a9ce1b4ccd434be371994ae14e6.tar.bz2 patchage-1f22a1e6dce27a9ce1b4ccd434be371994ae14e6.zip |
Make port colours configurable.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5350 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r-- | src/JackDriver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index 9638ace..8f80a56 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -147,7 +147,7 @@ JackDriver::create_port_view(Patchage* patchage, port_names(id, module_name, port_name); ModuleType type = InputOutput; - if (_app->configuration()->get_module_split( + if (_app->conf()->get_module_split( module_name, (jack_flags & JackPortIsTerminal))) { if (jack_flags & JackPortIsInput) { type = Input; @@ -194,7 +194,7 @@ JackDriver::create_port(PatchageModule& parent, jack_port_t* port, PortID id) PatchagePort* ret( new PatchagePort(parent, port_type, jack_port_short_name(port), (jack_port_flags(port) & JackPortIsInput), - _app->configuration()->get_port_color(port_type))); + _app->conf()->get_port_color(port_type))); if (id.type != PortID::NULL_PORT_ID) { dynamic_cast<PatchageCanvas*>(parent.canvas())->index_port(id, ret); @@ -248,7 +248,7 @@ JackDriver::refresh() client1_name = client1_name.substr(0, client1_name.find(":")); ModuleType type = InputOutput; - if (_app->configuration()->get_module_split( + if (_app->conf()->get_module_split( client1_name, (jack_port_flags(port) & JackPortIsTerminal))) { if (jack_port_flags(port) & JackPortIsInput) { @@ -318,7 +318,7 @@ JackDriver::refresh() if (src && dst && !_app->canvas()->get_edge(src, dst)) _app->canvas()->make_connection( - src, dst, port1->get_fill_color() + 0x22222200); + src, dst, port1->get_fill_color()); } jack_free(connected_ports); |