Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / 720to480 / 720to480.C
index c1af6c277d61083dc1420bf9e2234be63b332ff8..c7b99463e8a6dc1832e612cfb36d769f7a5e6057 100644 (file)
@@ -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()