summaryrefslogtreecommitdiff
path: root/platform/osx
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-07-28 11:02:28 +0200
committerGitHub <noreply@github.com>2017-07-28 11:02:28 +0200
commit5caf9d0d08c4eee098de64e9bfa2bfca0f670c9c (patch)
tree2b95280cc097eba91c0c6bfae30201f8324472b5 /platform/osx
parent246b574909f3ae1610001927b773d5b0f2c887e8 (diff)
parent1c1565d0f933762da9078547a266e9c33c63a9cf (diff)
Merge pull request #9876 from bruvzg/3.0-resize-fix
Improved macOS window resizing behaviour (3.0)
Diffstat (limited to 'platform/osx')
-rw-r--r--platform/osx/os_osx.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index 924417fb36..f98feafd0a 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -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);