X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Ferrorbox.C;h=420c3223dd798c8763af7896e1daff005f808658;hb=5616fa8528aa382cef440a88ffd0d87ed3bbfda2;hp=91504d2392c8c938196cbe6abd0636a9a47ee14b;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/errorbox.C b/cinelerra-5.1/guicast/errorbox.C index 91504d23..420c3223 100644 --- a/cinelerra-5.1/guicast/errorbox.C +++ b/cinelerra-5.1/guicast/errorbox.C @@ -33,17 +33,13 @@ ErrorBox::~ErrorBox() void ErrorBox::create_objects(const char *text) { lock_window("ErrorBox::create_objects"); - int x = 10, y = 10; + int x = xS(10), y = yS(10); - add_subwindow(new BC_Title(get_w() / 2, - y, - text, - MEDIUMFONT, - get_resources()->default_text_color, - 1)); - x = get_w() / 2 - 30; - y = get_h() - 50; - add_tool(new BC_OKButton(x, y)); + add_subwindow(new BC_Title(get_w() / 2, y, text, + MEDIUMFONT, get_resources()->default_text_color, 1)); + x = get_w()/2 - xS(30); + y = get_h() - yS(50); + add_subwindow(new BC_OKButton(x, y)); show_window(1); unlock_window(); }