From 58d6e501c01e6b25e7b37ea09234d1a7f9403daa Mon Sep 17 00:00:00 2001 From: OHASHI Hideya Date: Fri, 2 Sep 2016 23:13:41 +0900 Subject: [PATCH] GUI: set max knob to 24 --- drmr_ui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drmr_ui.c b/drmr_ui.c index 48e6e28..4e9053b 100644 --- a/drmr_ui.c +++ b/drmr_ui.c @@ -247,6 +247,7 @@ static gboolean kit_callback(gpointer data) { int samples = (ui->kitReqkits->num_kits && ui->kitReq >= 0)? ui->kits->kits[ui->kitReq].samples: 0; + if (samples > 24) samples = 24; GtkWidget** gain_sliders; GtkWidget** pan_sliders; if (ui->sample_table) {