add BC_SCALE env var for hi def monitors, cleanup theme data
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / cpanel.C
index e73879e4826c0133a73c60b2ece0aa3d4f282682..fa440711d9ee41effe6f4a8f57a12110b8c4bf41 100644 (file)
@@ -79,8 +79,8 @@ void CPanel::create_objects()
        y += operation[CWINDOW_TOOL_WINDOW]->get_h();
        subwindow->add_subwindow(operation[CWINDOW_TITLESAFE] = new CPanelTitleSafe(mwindow, this, x, y));
        y += operation[CWINDOW_TITLESAFE]->get_h();
-       x += (w - BC_Slider::get_span(1)) / 2;  y += 15;
-       subwindow->add_subwindow(cpanel_zoom = new CPanelZoom(mwindow, this, x, y, h-y-20));
+       x += (w - BC_Slider::get_span(1)) / 2;  y += yS(15);
+       subwindow->add_subwindow(cpanel_zoom = new CPanelZoom(mwindow, this, x, y, h-y-yS(20)));
 }
 
 void CPanel::reposition_buttons(int x, int y, int h)
@@ -95,9 +95,9 @@ void CPanel::reposition_buttons(int x, int y, int h)
                y += operation[i]->get_h();
        }
        x += (w - BC_Slider::get_span(1)) / 2;
-       y += 15;
+       y += yS(15);
        h = this->h - this->y;
-       cpanel_zoom->reposition_window(x, y, w, h-y-20);
+       cpanel_zoom->reposition_window(x, y, w, h-y-yS(20));
        cpanel_zoom->set_pointer_motion_range(h);
 }