X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fdecimate%2Fdecimate.C;h=cdf347eb3d3a476006298665abe13de9479a652d;hb=34d7b567ee523b6185aabe66879026c8e1704152;hp=5f72ea0c066b76e7eb1d00862bab99e19b0b3ebb;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/decimate/decimate.C b/cinelerra-5.1/plugins/decimate/decimate.C index 5f72ea0c..cdf347eb 100644 --- a/cinelerra-5.1/plugins/decimate/decimate.C +++ b/cinelerra-5.1/plugins/decimate/decimate.C @@ -210,10 +210,10 @@ int DecimateConfig::equivalent(DecimateConfig *config) DecimateWindow::DecimateWindow(Decimate *plugin) : PluginClientWindow(plugin, - 210, - 160, - 200, - 160, + xS(210), + yS(100), + xS(200), + yS(100), 0) { this->plugin = plugin; @@ -226,7 +226,8 @@ DecimateWindow::~DecimateWindow() void DecimateWindow::create_objects() { - int x = 10, y = 10; + int ys30 = yS(30); + int x = xS(10), y = yS(10); frame_rates.append(new BC_ListBoxItem("1")); frame_rates.append(new BC_ListBoxItem("5")); @@ -244,24 +245,24 @@ void DecimateWindow::create_objects() BC_Title *title; add_subwindow(title = new BC_Title(x, y, _("Input frames per second:"))); - y += 30; + y += ys30; add_subwindow(rate = new DecimateRate(plugin, this, x, y)); add_subwindow(rate_menu = new DecimateRateMenu(plugin, this, - x + rate->get_w() + 5, + x + rate->get_w() + xS(5), y)); - y += 30; + y += ys30; add_subwindow(title = new BC_Title(x, y, _("Last frame dropped: "))); add_subwindow(last_dropped = new BC_Title(x + title->get_w() + 5, y, "")); -// y += 30; +// y += ys30; // add_subwindow(difference = new DecimateDifference(plugin, // x, // y)); -// y += 30; +// y += ys30; // add_subwindow(avg_difference = new DecimateAvgDifference(plugin, // x, // y)); @@ -285,10 +286,7 @@ DecimateRate::DecimateRate(Decimate *plugin, DecimateWindow *gui, int x, int y) - : BC_TextBox(x, - y, - 90, - 1, + : BC_TextBox(x, y, xS(90), 1, (float)plugin->config.input_rate) { this->plugin = plugin; @@ -345,8 +343,8 @@ DecimateRateMenu::DecimateRateMenu(Decimate *plugin, int y) : BC_ListBox(x, y, - 100, - 200, + xS(100), + yS(200), LISTBOX_TEXT, &gui->frame_rates, 0,