X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fdescratch%2Fdescratch.C;h=ba6ea71b1032a85f957874bd0aa603516c5f66fa;hp=b94fc9dab4962052a6815ff6e49557a1f7dec9ba;hb=a2d9ab21fbb8e29310d9cd0be439522d05d0d0ba;hpb=a035e76a79938f9662fca703020e213020428c9d diff --git a/cinelerra-5.1/plugins/descratch/descratch.C b/cinelerra-5.1/plugins/descratch/descratch.C index b94fc9da..ba6ea71b 100644 --- a/cinelerra-5.1/plugins/descratch/descratch.C +++ b/cinelerra-5.1/plugins/descratch/descratch.C @@ -474,7 +474,7 @@ NEW_WINDOW_MACRO(DeScratchMain, DeScratchWindow) DeScratchWindow::DeScratchWindow(DeScratchMain *plugin) - : PluginClientWindow(plugin, 512, 256, 512, 256, 0) + : PluginClientWindow(plugin, 512, 270, 512, 270, 0) { this->plugin = plugin; } @@ -491,7 +491,11 @@ void DeScratchWindow::create_objects() BC_Title *title; add_tool(title = new BC_Title(x, y, _("DeScratch:"))); - y += title->get_h() + 5; + + int w1 = DeScratchReset::calculate_w(this, _("Reset")); + add_tool(reset = new DeScratchReset(this, get_w()-w1-15, y)); + + y += title->get_h() + 15; int x1 = x, x2 = get_w()/2; add_tool(title = new BC_Title(x1=x, y, _("threshold:"))); x1 += title->get_w()+16; @@ -504,7 +508,7 @@ void DeScratchWindow::create_objects() add_tool(title = new BC_Title(x1=x, y, _("Mode:"))); x1 += title->get_w()+16; add_tool(title = new BC_Title(x1, y, _("y:"))); - int w1 = title->get_w()+16; + w1 = title->get_w()+16; add_tool(y_mode = new DeScratchMode(this, (x1+=w1), y, &config.mode_y)); y_mode->create_objects(); x1 += y_mode->get_w()+16; add_tool(title = new BC_Title(x1, y, _("u:"))); @@ -560,10 +564,6 @@ void DeScratchWindow::create_objects() x1 += mark->get_w() + 10; add_tool(edge_only = new DeScratchEdgeOnly(this, x1, y)); - w1 = DeScratchReset::calculate_w(this, _("Reset")); - int h1 = DeScratchReset::calculate_h(); - add_tool(reset = new DeScratchReset(this, get_w()-w1-15, get_h()-h1-15)); - show_window(); }