diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-14 17:09:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-14 17:09:53 +0300 |
commit | 1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee (patch) | |
tree | bf0285e1c321689e2a6b6d015099d2edcb0c3d1f /src/gui/windowmanager.cpp | |
parent | 6045a08795de838f8f05ed86b8579288c4d8cbaf (diff) | |
download | plus-1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee.tar.gz plus-1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee.tar.bz2 plus-1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee.tar.xz plus-1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee.zip |
Fix compilation for windows 64 with mingw.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 6 |
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()); |