X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fwwindow.C;h=4bb239909031c0c6b408e12ee34c09a4a9fa4938;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hp=cdfa5349526c6470234d904a16763eb2cc88d2b0;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/wwindow.C b/cinelerra-5.1/cinelerra/wwindow.C index cdfa5349..4bb23990 100644 --- a/cinelerra-5.1/cinelerra/wwindow.C +++ b/cinelerra-5.1/cinelerra/wwindow.C @@ -73,7 +73,8 @@ int WWindow::wait_result() } WWindowGUI::WWindowGUI(WWindow *thread, int x, int y) - : BC_Window(_(PROGRAM_NAME ": Warning"), x, y, 640, 100, 640, 100, 0, 0, 1) + : BC_Window(_(PROGRAM_NAME ": Warning"), x, y, + xS(640), yS(100), xS(640), yS(100), 0, 0, 1) { this->thread = thread; } @@ -81,13 +82,13 @@ WWindowGUI::WWindowGUI(WWindow *thread, int x, int y) void WWindowGUI::create_objects() { lock_window("WWindowGUI::create_objects"); - int x = 10, y = 10; - add_subwindow(new BC_TextBox(x, y, get_w()-50, 3, thread->warn_text)); - y = get_h() - 30; + int x = xS(10), y = yS(10); + add_subwindow(new BC_TextBox(x, y, get_w()-xS(50), 3, thread->warn_text)); + y = get_h() - yS(30); if( thread->do_warning ) add_subwindow(new WDisable(this, x, y)); - y = get_h() - BC_CancelButton::calculate_h() - 10; - x = get_w() - BC_CancelButton::calculate_w() - 10; + y = get_h() - BC_CancelButton::calculate_h() - yS(10); + x = get_w() - BC_CancelButton::calculate_w() - xS(10); add_subwindow(new BC_CancelButton(x, y)); show_window(); unlock_window();