MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / input_window_resize_callback

Method input_window_resize_callback

src/MainProgram.cpp:528–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528void MainProgram::input_window_resize_callback(const InputManager::WindowResizeCallbackArgs& w) {
529 for(auto& wor : worlds)
530 wor->drawData.cam.set_viewing_area(window.size.cast<float>());
531 g.window_update();
532 screen->input_window_resize_callback(w);
533 post_callback();
534}
535
536void MainProgram::input_window_scale_callback(const InputManager::WindowScaleCallbackArgs& w) {
537 g.window_update();

Callers 1

Calls 2

set_viewing_areaMethod · 0.80
window_updateMethod · 0.80

Tested by

no test coverage detected