Godot Engine – Multi-platform 2D and 3D game engine
Fix Windows window icon after fullscreen
Stina Åström68e6489ea2cd
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cppindex fe1eca95216..97151078d86 100644--- a/platform/windows/display_server_windows.cpp+++ b/platform/windows/display_server_windows.cpp@@ -2736,6 +2736,8 @@ void DisplayServerWindows::_update_window_style(DisplayServerEnums::WindowID p_wSetWindowLongPtr(wd.hWnd, GWL_EXSTYLE, style_ex);if (wd.icon_set) {+ SendMessage(wd.hWnd, WM_SETICON, ICON_SMALL, 0);+ SendMessage(wd.hWnd, WM_SETICON, ICON_BIG, 0);if (wd.icon_big && !wd.icon_small) {SendMessage(wd.hWnd, WM_SETICON, ICON_BIG, (LPARAM)wd.icon_big);SendMessage(wd.hWnd, WM_SETICON, ICON_SMALL, (LPARAM)wd.icon_big);