X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fecho%2Fecho.C;h=672272c212c5ac2a2a07b0db9658d2f04e364613;hb=5ab40dced664b758745cf1e8db73cdcf18152e12;hp=ca23bbcf97c61956097530730361e7e05c88e56d;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/echo/echo.C b/cinelerra-5.1/plugins/echo/echo.C index ca23bbcf..672272c2 100644 --- a/cinelerra-5.1/plugins/echo/echo.C +++ b/cinelerra-5.1/plugins/echo/echo.C @@ -76,7 +76,7 @@ void EchoConfig::interpolate(EchoConfig &prev, EchoConfig &next, EchoWindow::EchoWindow(Echo *plugin) - : PluginClientWindow(plugin, 250, 100, 250, 100, 0) + : PluginClientWindow(plugin, xS(250), yS(100), xS(250), yS(100), 0) { this->plugin = plugin; } @@ -141,16 +141,18 @@ int EchoOffset::handle_event() void EchoWindow::create_objects() { - int x = 170, y = 10; - add_subwindow(level_title=new EchoTitle(5, y + 10, _("Level: "), + int xs5 = xS(5), xs35 = xS(35); + int ys10 = yS(10), ys25 = yS(25); + int x = xS(170), y = yS(10); + add_subwindow(level_title=new EchoTitle(xs5, y + ys10, _("Level: "), plugin->db.fromdb(plugin->config.level))); - add_subwindow(level = new EchoLevel(this, x, y)); y += 25; - add_subwindow(atten_title=new EchoTitle(5, y + 10, _("Atten: "), + add_subwindow(level = new EchoLevel(this, x, y)); y += ys25; + add_subwindow(atten_title=new EchoTitle(xs5, y + ys10, _("Atten: "), plugin->db.fromdb(plugin->config.atten))); - add_subwindow(atten = new EchoAtten(this, x + 35, y)); y += 25; - add_subwindow(offset_title=new EchoTitle(5, y + 10, _("Offset: "), + add_subwindow(atten = new EchoAtten(this, x + xs35, y)); y += ys25; + add_subwindow(offset_title=new EchoTitle(xs5, y + ys10, _("Offset: "), (int)plugin->config.offset)); - add_subwindow(offset = new EchoOffset(this, x, y)); y += 25; + add_subwindow(offset = new EchoOffset(this, x, y)); y += ys25; show_window(); }