summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-07-31 15:43:21 +0200
committerRobin Gareus <robin@gareus.org>2018-07-31 15:43:21 +0200
commitb61b1cd7aa13692c4ed06638de3cf2dc2cd2d1f1 (patch)
treee9b191334381765e943eb6dbe204e5e4e8548d8b
parentcc2324e7630f675130a31fc67b603d533d1dd2f3 (diff)
Tweak FP2/2018 Ctrl-Surface UI
-rw-r--r--gtk2_ardour/icons/faderport2018-small.pngbin0 -> 12629 bytes
-rw-r--r--libs/surfaces/faderport8/gui.cc9
2 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/icons/faderport2018-small.png b/gtk2_ardour/icons/faderport2018-small.png
new file mode 100644
index 0000000000..c2a668ef2b
--- /dev/null
+++ b/gtk2_ardour/icons/faderport2018-small.png
Binary files differ
diff --git a/libs/surfaces/faderport8/gui.cc b/libs/surfaces/faderport8/gui.cc
index fb12c00eb6..3a537de028 100644
--- a/libs/surfaces/faderport8/gui.cc
+++ b/libs/surfaces/faderport8/gui.cc
@@ -96,7 +96,7 @@ FP8GUI::FP8GUI (FaderPort8& p)
#ifdef FADERPORT16
string name = "faderport16-small.png";
#elif defined FADERPORT2
- string name = ""; // TODO
+ string name = "faderport2018-small.png";
#else
string name = "faderport8-small.png";
#endif
@@ -166,7 +166,12 @@ FP8GUI::FP8GUI (FaderPort8& p)
align->add (*user_combo);
table.attach (*align, 3 * action_col + 1, 3 * action_col + 2, row + action_row, row + action_row + 1, AttachOptions(FILL|EXPAND), AttachOptions (0));
- if (++action_row == 4) {
+#ifdef FADERPORT2
+ if (++action_row == 2)
+#else
+ if (++action_row == 4)
+#endif
+ {
action_row = 0;
++action_col;
}