add BC_SCALE env var for hi def monitors, cleanup theme data
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / diffkey / diffkey.C
index e863f593876cbbb425993bc04a1e7c61bb2d51e7..fb8bc99b858a4699981702c405c29296b350d32c 100644 (file)
@@ -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));