- add_subwindow(new BC_Title(x, y, _("Size:")));
- x += 50;
- add_subwindow(w = new ResizeVTrackWidth(this,
- thread,
- x,
- y));
- x += w->get_w() + 10;
- add_subwindow(new BC_Title(x, y, _("x")));
- x += 15;
- add_subwindow(h = new ResizeVTrackHeight(this,
- thread,
- x,
- y));
- x += h->get_w() + 5;
+ BC_Title *size_title = new BC_Title(x, y, _("Size:"));
+ add_subwindow(size_title);
+ int x1 = x + size_title->get_w();
+ int y1 = y + size_title->get_h() + 10;
+ BC_Title *scale_title = new BC_Title(x, y1, _("Scale:"));
+ add_subwindow(scale_title);
+ int x2 = x + scale_title->get_w();
+ if( x2 > x1 ) x1 = x2;
+ x1 += 10;
+ add_subwindow(w = new ResizeVTrackWidth(this, thread, x1, y));
+ x2 = x1 + w->get_w() + 5;
+ BC_Title *xy = new BC_Title(x2, y, _("x"));
+ add_subwindow(xy);
+ int x3 = x2 + xy->get_w() + 5;
+ add_subwindow(h = new ResizeVTrackHeight(this, thread, x3, y));
+ x = x3 + h->get_w() + 5;