X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmwindowmove.C;h=3bad75ef0e9ea905780c891d27e2f00eab105869;hp=89aaaee1d457e997842141d6e96316a1ce95db33;hb=refs%2Fheads%2Fmaster;hpb=c9c0e07706fad701a70ee0d1ffb0fcb6304f138c diff --git a/cinelerra-5.1/cinelerra/mwindowmove.C b/cinelerra-5.1/cinelerra/mwindowmove.C index 89aaaee1..3bad75ef 100644 --- a/cinelerra-5.1/cinelerra/mwindowmove.C +++ b/cinelerra-5.1/cinelerra/mwindowmove.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 @@ -28,6 +29,7 @@ #include "edits.h" #include "edl.h" #include "edlsession.h" +#include "gwindowgui.h" #include "keyframe.h" #include "labels.h" #include "localsession.h" @@ -259,7 +261,7 @@ void MWindow::change_currentautorange(int autogrouptype, int increment, int chan break; case AUTOGROUPTYPE_X: case AUTOGROUPTYPE_Y: - val = floor(val + 5); + val = floor(val + 50); break; } } @@ -278,7 +280,7 @@ void MWindow::change_currentautorange(int autogrouptype, int increment, int chan break; case AUTOGROUPTYPE_X: case AUTOGROUPTYPE_Y: - val = floor(val-5); + val = floor(val-50); break; } } @@ -296,6 +298,18 @@ void MWindow::change_currentautorange(int autogrouptype, int increment, int chan } } +void MWindow::update_autorange(int type, int increment, int use_max) +{ + gui->lock_window("MWindow::update_autorange"); + int group = Automation::autogrouptype(type, 0); + change_currentautorange(group, increment, use_max); + int color = GWindowGUI::auto_colors[type]; + gui->zoombar->update_autozoom(group, color); + gui->draw_overlays(0); + gui->update_patchbay(); + gui->flash_canvas(1); + gui->unlock_window(); +} void MWindow::expand_autos(int changeall, int domin, int domax) {