X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fquestion.C;h=e89b9c0f5153e411de8eef7c8ce0ae78c75bc6b2;hp=43130fca6db6856cc482ad087a6725da41d1cd2e;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/cinelerra/question.C b/cinelerra-5.1/cinelerra/question.C index 43130fca..e89b9c0f 100644 --- a/cinelerra-5.1/cinelerra/question.C +++ b/cinelerra-5.1/cinelerra/question.C @@ -27,15 +27,14 @@ #include "ctype.h" -#define WIDTH 375 -#define HEIGHT 160 +#define WIDTH xS(375) +#define HEIGHT yS(160) QuestionWindow::QuestionWindow(MWindow *mwindow) : BC_Window(_(PROGRAM_NAME ": Question"), mwindow->gui->get_abs_cursor_x(1) - WIDTH / 2, mwindow->gui->get_abs_cursor_y(1) - HEIGHT / 2, - WIDTH, - HEIGHT) + WIDTH, HEIGHT) { this->mwindow = mwindow; } @@ -47,13 +46,13 @@ QuestionWindow::~QuestionWindow() void QuestionWindow::create_objects(const char *string, int use_cancel) { lock_window("QuestionWindow::create_objects"); - int x = 10, y = 10; - add_subwindow(new BC_Title(10, 10, string)); - y += 30; + int x = xS(10), y = yS(10); + add_subwindow(new BC_Title(x, y, string)); + y += yS(30); add_subwindow(new QuestionYesButton(mwindow, this, x, y)); x += get_w() / 2; add_subwindow(new QuestionNoButton(mwindow, this, x, y)); - x = get_w() - 100; + x = get_w() - xS(100); if(use_cancel) add_subwindow(new BC_CancelButton(x, y)); unlock_window(); }