add BC_SCALE env var for hi def monitors, cleanup theme data
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / cpanel.C
index 87e753cd04e390b79c3f13ce9d37a6515d1b777c..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);
 }
 
@@ -364,8 +364,7 @@ CPanelTitleSafe::~CPanelTitleSafe()
 int CPanelTitleSafe::handle_event()
 {
        mwindow->edl->session->safe_regions = get_value();
-       gui->subwindow->canvas->draw_refresh();
-       return 1;
+       return gui->subwindow->canvas->refresh(1);
 }
 
 CPanelZoom::CPanelZoom(MWindow *mwindow, CPanel *gui, int x, int y, int h)
@@ -404,11 +403,7 @@ int CPanelZoom::handle_event()
                        track->automation->autos[aidx], 1);
        if( !z_auto ) return 1;
        z_auto->set_value(zoom);
-       gui->subwindow->update_tool();
-       mwindow->gui->lock_window("CPanelZoom::handle_event 1");
-       mwindow->gui->draw_overlays(1);
-       mwindow->gui->unlock_window();
-       mwindow->sync_parameters(CHANGE_PARAMS);
+       gui->subwindow->sync_parameters(CHANGE_PARAMS, 1, 1);
        return 1;
 }