BC_ProgressWindow::BC_ProgressWindow(int x, int y)
: BC_Window(_("Progress"),
BC_ProgressWindow::BC_ProgressWindow(int x, int y)
: BC_Window(_("Progress"),
- x,
- y,
- 340,
- 100 + get_resources()->ok_images[0]->get_h(),
- 0,
- 0,
- 0)
+ x, y, xS(340), yS(100) + get_resources()->ok_images[0]->get_h(),
+ 0, 0, 0)
lock_window("BC_ProgressWindow::create_objects");
// Recalculate width based on text
if(text)
{
int text_w = get_text_width(MEDIUMFONT, text);
lock_window("BC_ProgressWindow::create_objects");
// Recalculate width based on text
if(text)
{
int text_w = get_text_width(MEDIUMFONT, text);
if(new_w > scr_w) new_w = scr_w;
if(new_w > get_w()) {
resize_window(new_w, get_h());
if(new_w > scr_w) new_w = scr_w;
if(new_w > get_w()) {
resize_window(new_w, get_h());
- y += caption->get_h() + 20;
- add_tool(bar = new BC_ProgressBar(x, y, get_w() - 20, length));
+ y += caption->get_h() + yS(20);
+ add_tool(bar = new BC_ProgressBar(x, y, get_w() - xS(20), length));