X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Ftimestretch%2Ftimestretch.C;h=c4f01e1bdae2e179dcfd3292cfb0512cb5e491d0;hb=9182a6f3c48a4d211b7e3527e08511bd531011c4;hp=780c452a55fdf88518106600cf5cce30315fb24a;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/timestretch/timestretch.C b/cinelerra-5.1/plugins/timestretch/timestretch.C index 780c452a..c4f01e1b 100644 --- a/cinelerra-5.1/plugins/timestretch/timestretch.C +++ b/cinelerra-5.1/plugins/timestretch/timestretch.C @@ -49,7 +49,7 @@ REGISTER_PLUGIN(TimeStretch) TimeStretchFraction::TimeStretchFraction(TimeStretch *plugin, int x, int y) - : BC_TextBox(x, y, 100, 1, (float)(1.0 / plugin->scale)) + : BC_TextBox(x, y, xS(100), 1, (float)(1.0 / plugin->scale)) { this->plugin = plugin; } @@ -118,17 +118,20 @@ int TimeStretchTime::handle_event() TimeStretchWindow::TimeStretchWindow(TimeStretch *plugin, int x, int y) : BC_Window(_(PROGRAM_NAME ": Time stretch"), - x - 160, - y - 75, - 320, - 200, - 320, - 200, + x - xS(160), + y - yS(75), + xS(320), + yS(200), + xS(320), + yS(200), 0, 0, 1) { this->plugin = plugin; +// *** CONTEXT_HELP *** + if(plugin) context_help_set_keyword(plugin->plugin_title()); + else context_help_set_keyword("Rendered Audio Effects"); } @@ -138,7 +141,7 @@ TimeStretchWindow::~TimeStretchWindow() void TimeStretchWindow::create_objects() { - int x = 10, y = 10; + int x = xS(10), y = yS(10); BC_Title *title; add_subwindow(title = new BC_Title(x, y, _("Fraction of original speed:")));