X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fdiffkey%2Fdiffkey.C;h=2c0aef77cd537e9d2afcb7c765e59d4615bfff4d;hb=HEAD;hp=e863f593876cbbb425993bc04a1e7c61bb2d51e7;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/diffkey/diffkey.C b/cinelerra-5.1/plugins/diffkey/diffkey.C index e863f593..2c0aef77 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), xs38 = xS(38); + 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() + xs38; add_subwindow(slope = new DiffKeySlope(plugin, x, y)); - x = 10; - y += slope->get_h() + 10; + x = xs38; + y += slope->get_h() + ys10; add_subwindow(do_value = new DiffKeyDoValue(plugin, x, y));