mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 00:23:27 +00:00
Improved macOS window resizing behaviour.
This commit is contained in:
parent
ccb17c2b27
commit
1c1565d0f9
@ -161,6 +161,12 @@ static bool mouse_down_control = false;
|
||||
OS_OSX::singleton->window_size.width = fbRect.size.width * OS_OSX::singleton->display_scale;
|
||||
OS_OSX::singleton->window_size.height = fbRect.size.height * OS_OSX::singleton->display_scale;
|
||||
|
||||
if (OS_OSX::singleton->main_loop) {
|
||||
Main::force_redraw();
|
||||
//Event retrieval blocks until resize is over. Call Main::iteration() directly.
|
||||
Main::iteration();
|
||||
}
|
||||
|
||||
/*
|
||||
_GodotInputFramebufferSize(window, fbRect.size.width, fbRect.size.height);
|
||||
_GodotInputWindowSize(window, contentRect.size.width, contentRect.size.height);
|
||||
|
Loading…
Reference in New Issue
Block a user