X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Flabeledit.C;h=9a728a0e8d0e632ccc9fa87bb60c1ff820160860;hp=22681918de4c0ae8a245a4126682fc422501604a;hb=076da20a596fe698e1152ce2f3f2d75d2daddec8;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/labeledit.C b/cinelerra-5.1/cinelerra/labeledit.C index 22681918..9a728a0e 100644 --- a/cinelerra-5.1/cinelerra/labeledit.C +++ b/cinelerra-5.1/cinelerra/labeledit.C @@ -74,10 +74,13 @@ BC_Window *LabelEdit::new_gui() return label_edit_window; } +#define LEW_W xS(400) +#define LEW_H yS(350) + LabelEditWindow::LabelEditWindow(MWindow *mwindow, LabelEdit *thread) : BC_Window(_(PROGRAM_NAME ": Label Info"), - thread->x - 400/2, thread->y - 350/2, - 400, 350, 400, 430, 0, 0, 1) + thread->x - LEW_W/2, thread->y - LEW_H/2, + LEW_W, LEW_H, xS(400), yS(430), 0, 0, 1) { this->mwindow = mwindow; this->thread = thread; @@ -92,14 +95,14 @@ void LabelEditWindow::create_objects() lock_window("LabelEditWindow::create_objects"); this->label = thread->label; - int x = 10, y = 10; + int x = xS(10), y = yS(10); int x1 = x; BC_Title *title; add_subwindow(title = new BC_Title(x1, y, _("Label Text:"))); y += title->get_h() + 5; add_subwindow(textbox = new LabelEditComments(this, x1, y, get_w() - x1 * 2, - BC_TextBox::pixels_to_rows(this, MEDIUMFONT, get_h() - 10 - 40 - y))); + BC_TextBox::pixels_to_rows(this, MEDIUMFONT, get_h() - y - yS(10 + 40)))); add_subwindow(new BC_OKButton(this)); add_subwindow(new BC_CancelButton(this));