X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftimebar.C;h=4b32cb6a6fceba265fc15d8cacf01f62f52e0bb0;hb=9bfa5ffc623a598d68264609cad82d71432981c5;hp=79c99ed04ea2a37a61747b4722aea849ede87231;hpb=b32cf83f55420546cdab0ee4b30a7a5638f63f33;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/timebar.C b/cinelerra-5.1/cinelerra/timebar.C index 79c99ed0..4b32cb6a 100644 --- a/cinelerra-5.1/cinelerra/timebar.C +++ b/cinelerra-5.1/cinelerra/timebar.C @@ -2,6 +2,7 @@ /* * CINELERRA * Copyright (C) 1997-2014 Adam Williams + * Copyright (C) 2003-2016 Cinelerra CV contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -849,21 +850,21 @@ int TimeBar::button_release_event() //printf("TimeBar::button_release_event %d %d\n", __LINE__, current_operation); int result = 0; int need_redraw = 0; - switch( current_operation ) - { - case TIMEBAR_DRAG: - mwindow->gui->get_focused_pane()->canvas->stop_dragscroll(); + switch( current_operation ) { + case TIMEBAR_DRAG: { + mwindow->gui->get_focused_pane()->canvas->stop_dragscroll(); + current_operation = TIMEBAR_NONE; + need_redraw = 1; + CWindowCanvas *canvas = mwindow->cwindow->gui->canvas; + canvas->draw_scope(canvas->refresh_frame, -1); + result = 1; + break; } + default: + if( current_operation != TIMEBAR_NONE ) { current_operation = TIMEBAR_NONE; - need_redraw = 1; result = 1; - break; - - default: - if( current_operation != TIMEBAR_NONE ) { - current_operation = TIMEBAR_NONE; - result = 1; - } - break; + } + break; } if( (!cursor_above() && highlighted) || need_redraw ) {