X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2F720to480%2F720to480.C;h=c7b99463e8a6dc1832e612cfb36d769f7a5e6057;hb=9d54c23d957ea350c5ffd756ac2c1c221c94637b;hp=c1af6c277d61083dc1420bf9e2234be63b332ff8;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/720to480/720to480.C b/cinelerra-5.1/plugins/720to480/720to480.C index c1af6c27..c7b99463 100644 --- a/cinelerra-5.1/plugins/720to480/720to480.C +++ b/cinelerra-5.1/plugins/720to480/720to480.C @@ -52,18 +52,12 @@ _720to480Config::_720to480Config() _720to480Window::_720to480Window(_720to480Main *client, int x, int y) - : BC_Window(client->gui_string, - x, - y, - 230, - 150, - 230, - 150, - 0, - 0, - 1) + : BC_Window(client->gui_string, x, y, xS(230), yS(150), xS(230), yS(150), 0, 0, 1) { this->client = client; +// *** CONTEXT_HELP *** + if(client) context_help_set_keyword(client->plugin_title()); + else context_help_set_keyword("Rendered Video Effects"); } @@ -73,15 +67,16 @@ _720to480Window::~_720to480Window() void _720to480Window::create_objects() { - int x = 10, y = 10; + lock_window("720to480Window::create_objects"); + int x = xS(10), y = yS(10); add_tool(odd_first = new _720to480Order(client, this, 1, x, y, _("Odd field first"))); - y += 25; + y += yS(25); add_tool(even_first = new _720to480Order(client, this, 0, x, y, _("Even field first"))); -// y += 25; +// y += yS(25); // add_tool(forward = new _720to480Direction(client, this, FORWARD, x, y, _("Downsample"))); -// y += 25; +// y += yS(25); // add_tool(reverse = new _720to480Direction(client, this, REVERSE, x, y, _("Upsample"))); // add_subwindow(new BC_OKButton(this)); @@ -89,6 +84,7 @@ void _720to480Window::create_objects() show_window(); flush(); + unlock_window(); } int _720to480Window::close_event()