- win = add_subwindow(new BC_Title(x, y + 5, _("Cache size (MB):"), MEDIUMFONT, resources->text_default));
- maxw = win->get_w();
- int x1 = x + xmargin4;
- win = add_subwindow(new BC_Title(x1, y + 5, _("Use HW Device:")));
- x1 += win->get_w() + 5;
- PrefsUseHWDev *use_hw_dev = new PrefsUseHWDev(pwindow, this, x1, y);
- use_hw_dev->create_objects();
-
- int y1 = y += 30;
- win = add_subwindow(new BC_Title(x, y + 5, _("Seconds to preroll renders:")));
- if((curw = win->get_w()) > maxw)
- maxw = curw;
- maxw += x + 5;
-
- cache_size = new CICacheSize(maxw, y0, pwindow, this);
+ win = add_subwindow(new BC_Title(x, y + ys5, _("Cache size (MB):"), MEDIUMFONT, resources->text_default));
+ int maxw = win->get_w();
+ int y1 = y += ys30;
+ win = add_subwindow(new BC_Title(x, y1 + ys5, _("Seconds to preroll renders:")));
+ maxw = bmax(win->get_w(), maxw);
+ int x2 = x + maxw + xs5;
+ int y2 = y += ys30;
+ cache_size = new CICacheSize(x2, y0, pwindow, this);