X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fhistogram%2Fhistogramwindow.C;fp=cinelerra-5.1%2Fplugins%2Fhistogram%2Fhistogramwindow.C;h=3a2e6cf2ea38877c4c71afedf5b38a613e41c8fc;hp=9529b6e17fdc2532f57e9c2d0843b98387df2e04;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/plugins/histogram/histogramwindow.C b/cinelerra-5.1/plugins/histogram/histogramwindow.C index 9529b6e1..3a2e6cf2 100644 --- a/cinelerra-5.1/plugins/histogram/histogramwindow.C +++ b/cinelerra-5.1/plugins/histogram/histogramwindow.C @@ -38,8 +38,8 @@ HistogramWindow::HistogramWindow(HistogramMain *plugin) : PluginClientWindow(plugin, plugin->w, plugin->h, - 440, - 500, + xS(440), + yS(500), 1) { this->plugin = plugin; @@ -106,7 +106,7 @@ void HistogramWindow::create_objects() y += canvas_title2->get_h() + margin; x = x1; - canvas_h = get_h() - y - 210; + canvas_h = get_h() - y - yS(210); add_subwindow(low_input_carrot = new HistogramCarrot(plugin, @@ -182,7 +182,7 @@ void HistogramWindow::create_objects() x = x1; add_subwindow(output = new HistogramSlider(plugin, this, - canvas->get_x(), y, canvas->get_w(), 20, 0)); + canvas->get_x(), y, canvas->get_w(), yS(20), 0)); output->update(); // Output border @@ -216,7 +216,7 @@ void HistogramWindow::create_objects() add_subwindow(automatic = new HistogramAuto(plugin, x, y)); //int y1 = y; - x = 200; + x = xS(200); add_subwindow(threshold_title = new BC_Title(x, y, _("Threshold:"))); x += threshold_title->get_w() + margin; threshold = new HistogramText(plugin, this, x, y); @@ -230,7 +230,7 @@ void HistogramWindow::create_objects() y += automatic->get_h() + margin; add_subwindow(plot = new HistogramPlot(plugin, x, y)); - y += plot->get_h() + 5; + y += plot->get_h() + yS(5); add_subwindow(split = new HistogramSplit(plugin, x, y)); update(1, 1, 1, 1); @@ -973,7 +973,7 @@ int HistogramMode::handle_event() HistogramText::HistogramText(HistogramMain *plugin, HistogramWindow *gui, int x, int y, float hist_min, float hist_max) - : BC_TumbleTextBox(gui, 0.0, hist_min, hist_max, x, y, 70) + : BC_TumbleTextBox(gui, 0.0, hist_min, hist_max, x, y, xS(70)) { this->plugin = plugin; this->gui = gui;