Window resize operations moved to event callbacks
This commit is contained in:
parent
f5d757a9a5
commit
3ee17cfd2b
9 changed files with 57 additions and 30 deletions
|
|
@ -441,6 +441,16 @@ void MainProgram::input_finger_touch_callback(const InputManager::FingerTouchCal
|
|||
void MainProgram::input_finger_motion_callback(const InputManager::FingerMotionCallbackArgs& motion) {
|
||||
}
|
||||
|
||||
void MainProgram::input_window_resize_callback(const InputManager::WindowResizeCallbackArgs& w) {
|
||||
g.window_update();
|
||||
post_callback();
|
||||
}
|
||||
|
||||
void MainProgram::input_window_scale_callback(const InputManager::WindowScaleCallbackArgs& w) {
|
||||
g.window_update();
|
||||
post_callback();
|
||||
}
|
||||
|
||||
void MainProgram::close_set_to_close_tabs() {
|
||||
if(!tabsToClose.empty()) {
|
||||
std::erase_if(worlds, [&](auto& w) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue