From e5ff8e3e654bf2a4cf81889810a11872491965ee Mon Sep 17 00:00:00 2001 From: niels Date: Fri, 13 Nov 2015 22:06:47 +0100 Subject: [PATCH] fix default value in fx fade duration (reloaded) --- veejay-current/veejay-client/src/vj-api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/veejay-current/veejay-client/src/vj-api.c b/veejay-current/veejay-client/src/vj-api.c index 8593235d..b034461c 100644 --- a/veejay-current/veejay-client/src/vj-api.c +++ b/veejay-current/veejay-client/src/vj-api.c @@ -6145,7 +6145,7 @@ static void update_globalinfo(int *history, int pm, int last_pm) update_spin_value( "stream_length", info->status_tokens[SAMPLE_MARKER_END] ); update_label_str( "stream_length_label", time ); } - update_spin_range("button_fadedur", 0, total_frames_, 0 ); + update_spin_range("button_fadedur", 0, total_frames_, ( total_frames_ > 25 ? 25 : total_frames_-1 ) ); update_label_i( "label_totframes", total_frames_, 1 ); update_label_str( "label_samplelength",time); if( pm == MODE_PLAIN )