summaryrefslogtreecommitdiff
path: root/src/gui/windowmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r--src/gui/windowmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp
index e578a21c9..7d6f6ff6c 100644
--- a/src/gui/windowmanager.cpp
+++ b/src/gui/windowmanager.cpp
@@ -386,7 +386,13 @@ void WindowManager::setIcon()
icon = LoadIcon(GetModuleHandle(nullptr), "A");
}
if (icon)
+ {
+#ifdef WIN64
+ SetClassLongPtr(pInfo.window, GCLP_HICON, reinterpret_cast<LONG_PTR>(icon));
+#else // WIN64
SetClassLong(pInfo.window, GCL_HICON, reinterpret_cast<LONG>(icon));
+#endif // WIN64
+ }
#else // WIN32
mIcon = MIMG_Load(iconFile.c_str());