From 8b4c4d9b2fbfa39e71bc1e4f4fcdd5377a9396e4 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 3 Mar 2019 17:53:59 -0300 Subject: Implement a more coherent (and way less hack) way to block animation updates, fixes #24618 --- platform/windows/os_windows.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'platform/windows') diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index a213e495b4..bace65e772 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -308,7 +308,6 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) } }; - switch (uMsg) // Check For Windows Messages { case WM_SETFOCUS: { @@ -3004,9 +3003,9 @@ bool OS_Windows::is_disable_crash_handler() const { void OS_Windows::process_and_drop_events() { - drop_events=true; + drop_events = true; process_events(); - drop_events=false; + drop_events = false; } Error OS_Windows::move_to_trash(const String &p_path) { -- cgit v1.2.3