X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fapanel.C;h=de2ad953f89f17ef1b524c24c107fa3ed330cb02;hp=0f39c10b583f3c693599e512142b03249270d822;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/cinelerra/apanel.C b/cinelerra-5.1/cinelerra/apanel.C index 0f39c10b..de2ad953 100644 --- a/cinelerra-5.1/cinelerra/apanel.C +++ b/cinelerra-5.1/cinelerra/apanel.C @@ -40,17 +40,18 @@ APanel::~APanel() void APanel::create_objects() { - int x = this->x + 5, y = this->y + 10; + int ys10 = yS(10), ys20 = yS(20); + int x = this->x + xS(5), y = this->y + ys10; char string[BCTEXTLEN]; int x1 = x; subwindow->add_subwindow(new BC_Title(x, y, _("Automation"))); - y += 20; + y += ys20; for(int i = 0; i < PLUGINS; i++) { sprintf(string, _("Plugin %d"), i + 1); subwindow->add_subwindow(new BC_Title(x, y, string, SMALLFONT)); - subwindow->add_subwindow(plugin_autos[i] = new APanelPluginAuto(mwindow, this, x, y + 20)); + subwindow->add_subwindow(plugin_autos[i] = new APanelPluginAuto(mwindow, this, x, y + ys20)); if(x == x1) { x += plugin_autos[i]->get_w(); @@ -58,7 +59,7 @@ void APanel::create_objects() else { x = x1; - y += plugin_autos[i]->get_h() + 20; + y += plugin_autos[i]->get_h() + ys20; } } @@ -71,11 +72,7 @@ void APanel::create_objects() APanelPluginAuto::APanelPluginAuto(MWindow *mwindow, APanel *gui, int x, int y) - : BC_FPot(x, - y, - 0, - -1, - 1) + : BC_FPot(x, y, 0, -1, 1) { this->mwindow = mwindow; this->gui = gui;