X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fivtc%2Fivtcwindow.C;h=d3b996649d3cda9bc47624e95474e7447dc2aefb;hp=22a113ca249e9952af11d0ccaa4b612c2da90a8b;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/plugins/ivtc/ivtcwindow.C b/cinelerra-5.1/plugins/ivtc/ivtcwindow.C index 22a113ca..d3b99664 100644 --- a/cinelerra-5.1/plugins/ivtc/ivtcwindow.C +++ b/cinelerra-5.1/plugins/ivtc/ivtcwindow.C @@ -42,10 +42,10 @@ static const char *pattern_text[] = IVTCWindow::IVTCWindow(IVTCMain *client) : PluginClientWindow(client, - 210, - 230, - 210, - 230, + xS(210), + yS(230), + xS(210), + yS(230), 0) { this->client = client; @@ -57,18 +57,20 @@ IVTCWindow::~IVTCWindow() void IVTCWindow::create_objects() { - int x = 10, y = 10; + int xs10 = xS(10); + int ys10 = yS(10), ys20 = yS(20), ys30 = yS(30), ys40 = yS(40); + int x = xs10, y = ys10; add_tool(new BC_Title(x, y, _("Pattern offset:"))); - y += 20; + y += ys20; add_tool(frame_offset = new IVTCOffset(client, x, y)); - y += 30; + y += ys30; add_tool(first_field = new IVTCFieldOrder(client, x, y)); -// y += 30; +// y += ys30; // add_tool(automatic = new IVTCAuto(client, x, y)); - y += 40; + y += ys40; add_subwindow(new BC_Title(x, y, _("Pattern:"))); - y += 20; + y += ys20; for(int i = 0; i < TOTAL_PATTERNS; i++) { add_subwindow(pattern[i] = new IVTCPattern(client, @@ -77,7 +79,7 @@ void IVTCWindow::create_objects() _(pattern_text[i]), x, y)); - y += 20; + y += ys20; } if(client->config.pattern == IVTCConfig::AUTOMATIC) @@ -85,9 +87,9 @@ void IVTCWindow::create_objects() frame_offset->disable(); first_field->disable(); } -// y += 30; +// y += ys30; // add_tool(new BC_Title(x, y, _("Field threshold:"))); -// y += 20; +// y += ys20; // add_tool(threshold = new IVTCAutoThreshold(client, x, y)); show_window(); flush(); @@ -98,7 +100,7 @@ void IVTCWindow::create_objects() IVTCOffset::IVTCOffset(IVTCMain *client, int x, int y) : BC_TextBox(x, y, - 190, + xS(190), 1, client->config.frame_offset) { @@ -189,7 +191,7 @@ int IVTCPattern::handle_event() IVTCAutoThreshold::IVTCAutoThreshold(IVTCMain *client, int x, int y) - : BC_TextBox(x, y, 190, 1, client->config.auto_threshold) + : BC_TextBox(x, y, xS(190), 1, client->config.auto_threshold) { this->client = client; }