int Scale::handle_event()
{
thread->start();
+return 0;
}
ScaleThread::ScaleThread(MWindow *mwindow)
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;
sprintf(string, "%.0f", aspect_h);
window->aspect_h->update(string);
}
+return 0;
}
if(*output > 10000) *output = 10000;
*output *= -1;
thread->update_window();
+return 0;
}
ScaleOffsetText::ScaleOffsetText(int x, int y, ScaleThread *thread, int *output)
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)
if(*output < -10000) *output = -10000;
*output *= -1;
thread->update_window();
+return 0;
}
int ScaleConstrain::handle_event()
{
thread->constrain_ratio = get_value();
+return 0;
}
ScaleData::ScaleData(int x, int y, ScaleThread *thread)
{
thread->scale_data = get_value();
thread->update_window();
+return 0;
}
{
thread->auto_aspect = get_value();
thread->update_aspect(thread->window);
+return 0;
}
int ScaleAspectW::handle_event()
{
*output = atof(get_text());
+return 0;
}
int ScaleAspectH::handle_event()
{
*output = atof(get_text());
+return 0;
}