X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fscale.C;h=860c46fb0e010014805e41ed5bccb86eb2c9b3fe;hp=8c7b49c9a2a68e6564782894f7e3823baf40a1a3;hb=refs%2Fheads%2Fmaster;hpb=0df48ad2d876409c5beeae2e21933a728ea76c33 diff --git a/cinelerra-5.1/cinelerra/scale.C b/cinelerra-5.1/cinelerra/scale.C index 8c7b49c9..7d682bcb 100644 --- a/cinelerra-5.1/cinelerra/scale.C +++ b/cinelerra-5.1/cinelerra/scale.C @@ -47,6 +47,7 @@ Scale::~Scale() int Scale::handle_event() { thread->start(); +return 0; } ScaleThread::ScaleThread(MWindow *mwindow) @@ -64,7 +65,7 @@ void ScaleThread::run() already_running = 1; constrain_ratio = mwindow->defaults->get("SCALECONSTRAIN", 0); scale_data = mwindow->defaults->get("SCALEDATA", 0); - auto_aspect = mwindow->defaults->get("AUDIOASPECT", 0); + auto_aspect = mwindow->defaults->get("AUTOASPECT", 0); offsets[0] = offsets[1] = offsets[2] = offsets[3] = 0; orig_dimension[0] = dimension[0] = mwindow->session->track_w; @@ -189,6 +190,7 @@ int ScaleThread::update_aspect(ScaleWindow *window) sprintf(string, "%.0f", aspect_h); window->aspect_h->update(string); } +return 0; } @@ -307,6 +309,7 @@ int ScaleSizeText::handle_event() if(*output > 10000) *output = 10000; *output *= -1; thread->update_window(); +return 0; } ScaleOffsetText::ScaleOffsetText(int x, int y, ScaleThread *thread, int *output) @@ -320,6 +323,7 @@ int ScaleOffsetText::handle_event() if(*output > 10000) *output = 10000; if(*output < -10000) *output = -10000; thread->update_window(1); +return 0; } ScaleRatioText::ScaleRatioText(int x, int y, ScaleThread *thread, float *output) @@ -334,6 +338,7 @@ int ScaleRatioText::handle_event() if(*output < -10000) *output = -10000; *output *= -1; thread->update_window(); +return 0; } @@ -346,6 +351,7 @@ ScaleConstrain::~ScaleConstrain() {} int ScaleConstrain::handle_event() { thread->constrain_ratio = get_value(); +return 0; } ScaleData::ScaleData(int x, int y, ScaleThread *thread) @@ -356,6 +362,7 @@ int ScaleData::handle_event() { thread->scale_data = get_value(); thread->update_window(); +return 0; } @@ -371,6 +378,7 @@ int ScaleAspectAuto::handle_event() { thread->auto_aspect = get_value(); thread->update_aspect(thread->window); +return 0; } @@ -389,6 +397,7 @@ ScaleAspectW::~ScaleAspectW() int ScaleAspectW::handle_event() { *output = atof(get_text()); +return 0; } @@ -405,6 +414,7 @@ ScaleAspectH::~ScaleAspectH() int ScaleAspectH::handle_event() { *output = atof(get_text()); +return 0; }