summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-03-16 15:48:53 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-03-16 15:48:56 +0100
commitfa37f170296284bb737dabb1c6c6fbf66db31c0f (patch)
treeba586ee9c5acaf2793879bdd94b218b0b5733b26 /platform
parent9d732aa0cfcfd638c28ac8eb8149d912a5a3a642 (diff)
Windows: Properly set `mouse_monitor` instead of shadowing it
GCC was raising a warning about unused variable, but it's actually meant to be used in the destructor for deinit.
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/display_server_windows.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index e1ab2d1c83..d09ca52099 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -3596,12 +3596,11 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
return;
}
- //gl_manager->set_use_vsync(current_videomode.use_vsync);
RasterizerGLES3::make_current();
}
#endif
- HHOOK mouse_monitor = SetWindowsHookEx(WH_MOUSE, ::MouseProc, nullptr, GetCurrentThreadId());
+ mouse_monitor = SetWindowsHookEx(WH_MOUSE, ::MouseProc, nullptr, GetCurrentThreadId());
Point2i window_position(
(screen_get_size(0).width - p_resolution.width) / 2,