unlock_window();
}
-void GWindowGUI::update_mwindow()
+void GWindowGUI::update_mwindow(int toggles, int overlays)
{
unlock_window();
- mwindow->gui->mainmenu->update_toggles(1);
+ mwindow->gui->lock_window("GWindowGUI::update_mwindow");
+ if( toggles )
+ mwindow->gui->mainmenu->update_toggles(0);
+ if( overlays )
+ mwindow->gui->draw_overlays(1);
+ mwindow->gui->unlock_window();
lock_window("GWindowGUI::update_mwindow");
}
camera_xyz->set_value(v);
xyz_check(AUTOMATION_CAMERA_X, v);
update_toggles(0);
- update_mwindow();
+ update_mwindow(1, 1);
}
void GWindowGUI::toggle_projector_xyz()
projector_xyz->set_value(v);
xyz_check(AUTOMATION_PROJECTOR_X, v);
update_toggles(0);
- update_mwindow();
+ update_mwindow(1, 1);
}
int GWindowGUI::translation_event()
gui->update_toggles(0);
}
}
- gui->update_mwindow();
+ gui->update_mwindow(1, 0);
// Update stuff in MWindow
unlock_window();
void update_toggles(int use_lock);
void toggle_camera_xyz();
void toggle_projector_xyz();
- void update_mwindow();
+ void update_mwindow(int toggles, int overlays);
void load_defaults();
void save_defaults();
int *get_main_value(toggleinfo *info);