From 1f22a1e6dce27a9ce1b4ccd434be371994ae14e6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 31 Mar 2014 02:28:26 +0000 Subject: Make port colours configurable. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5350 a436a847-0d15-0410-975c-d299462d15a1 --- src/AlsaDriver.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/AlsaDriver.cpp') diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index b4b43d7..78a0a16 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -163,7 +163,7 @@ AlsaDriver::refresh() PatchagePort* port2 = _app->canvas()->find_port(id2); if (port2 && !_app->canvas()->get_edge(port, port2)) { _app->canvas()->make_connection( - port, port2, port->get_fill_color() + 0x22222200); + port, port2, port->get_fill_color()); } } @@ -268,11 +268,11 @@ AlsaDriver::create_port_view_internal( bool split = false; if (is_duplex) { split = true; - if (!_app->configuration()->get_module_split(client_name, !is_application)) { - _app->configuration()->set_module_split(client_name, true); + if (!_app->conf()->get_module_split(client_name, !is_application)) { + _app->conf()->set_module_split(client_name, true); } } else { - split = _app->configuration()->get_module_split(client_name, !is_application); + split = _app->conf()->get_module_split(client_name, !is_application); } /*cout << "ALSA PORT: " << client_name << " : " << port_name @@ -312,7 +312,7 @@ AlsaDriver::create_port(PatchageModule& parent, { PatchagePort* ret = new PatchagePort( parent, ALSA_MIDI, name, is_input, - _app->configuration()->get_port_color(ALSA_MIDI)); + _app->conf()->get_port_color(ALSA_MIDI)); dynamic_cast(parent.canvas())->index_port( PortID(addr, is_input), ret); -- cgit v1.2.1