X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fdiffkey%2Fdiffkey.C;h=fb8bc99b858a4699981702c405c29296b350d32c;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hp=e863f593876cbbb425993bc04a1e7c61bb2d51e7;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/diffkey/diffkey.C b/cinelerra-5.1/plugins/diffkey/diffkey.C index e863f593..fb8bc99b 100644 --- a/cinelerra-5.1/plugins/diffkey/diffkey.C +++ b/cinelerra-5.1/plugins/diffkey/diffkey.C @@ -218,7 +218,7 @@ void DiffKeyConfig::interpolate(DiffKeyConfig &prev, DiffKeyThreshold::DiffKeyThreshold(DiffKey *plugin, int x, int y) - : BC_FSlider(x, y, 0, 200, 200, 0, 100, plugin->config.threshold) + : BC_FSlider(x, y, 0, xS(200), yS(200), 0, 100, plugin->config.threshold) { this->plugin = plugin; } @@ -238,7 +238,7 @@ int DiffKeyThreshold::handle_event() DiffKeySlope::DiffKeySlope(DiffKey *plugin, int x, int y) - : BC_FSlider(x, y, 0, 200, 200, 0, 100, plugin->config.slope) + : BC_FSlider(x, y, 0, xS(200), yS(200), 0, 100, plugin->config.slope) { this->plugin = plugin; } @@ -273,10 +273,10 @@ int DiffKeyDoValue::handle_event() DiffKeyGUI::DiffKeyGUI(DiffKey *plugin) : PluginClientWindow(plugin, - 320, - 100, - 320, - 100, + xS(320), + yS(100), + xS(320), + yS(100), 0) { this->plugin = plugin; @@ -289,18 +289,20 @@ DiffKeyGUI::~DiffKeyGUI() void DiffKeyGUI::create_objects() { - int x = 10, y = 10; + int xs10 = xS(10); + int ys10 = yS(10); + int x = xs10, y = ys10; BC_Title *title; add_subwindow(title = new BC_Title(x, y, _("Threshold:"))); - x += title->get_w() + 10; + x += title->get_w() + xs10; add_subwindow(threshold = new DiffKeyThreshold(plugin, x, y)); - x = 10; - y += threshold->get_h() + 10; + x = xs10; + y += threshold->get_h() + ys10; add_subwindow(title = new BC_Title(x, y, _("Slope:"))); - x += title->get_w() + 10; + x += title->get_w() + xs10; add_subwindow(slope = new DiffKeySlope(plugin, x, y)); - x = 10; - y += slope->get_h() + 10; + x = xs10; + y += slope->get_h() + ys10; add_subwindow(do_value = new DiffKeyDoValue(plugin, x, y));