summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJordan Irwin <antumdeluge@gmail.com>2022-07-14 19:44:44 -0700
committerjak1 <jak1@themanaworld.org>2022-12-18 17:26:28 +0000
commitee778b910e1a6d06cdbeed8f8e536112bc0321f4 (patch)
tree3b61e082a1154af77ab54db5880c4bd9d11b96b1 /src/gui
parent3ad822e4d2b4232c72d7b39185bbe660d40c0b45 (diff)
downloadplus-ee778b910e1a6d06cdbeed8f8e536112bc0321f4.tar.gz
plus-ee778b910e1a6d06cdbeed8f8e536112bc0321f4.tar.bz2
plus-ee778b910e1a6d06cdbeed8f8e536112bc0321f4.tar.xz
plus-ee778b910e1a6d06cdbeed8f8e536112bc0321f4.zip
fix HWND reference for SDL 2 builds
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windowmanager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp
index 15a536f15..79e6cb47c 100644
--- a/src/gui/windowmanager.cpp
+++ b/src/gui/windowmanager.cpp
@@ -449,11 +449,19 @@ void WindowManager::setIcon()
if (icon)
{
#ifdef WIN64
+#ifdef USE_SDL2
+ SetClassLongPtr(pInfo.info.win.window,
+#else
SetClassLongPtr(pInfo.window,
+#endif // USE_SDL2
GCLP_HICON,
reinterpret_cast<LONG_PTR>(icon));
#else // WIN64
+#ifdef USE_SDL2
+ SetClassLong(pInfo.info.win.window,
+#else
SetClassLong(pInfo.window,
+#endif // USE_SDL2
GCL_HICON,
reinterpret_cast<LONG>(icon));
#endif // WIN64