mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
pl_win.c: Fixed for win64 (GCL_HICON is deprecated, use GCLP_HICON and
SetClassLongPtr.) git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@40 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
222ea1945c
commit
aa24149247
1 changed files with 4 additions and 0 deletions
|
@ -44,7 +44,11 @@ void PL_SetWindowIcon (void)
|
||||||
return; // wrong SDL version
|
return; // wrong SDL version
|
||||||
|
|
||||||
hwnd = wminfo.window;
|
hwnd = wminfo.window;
|
||||||
|
#ifdef _WIN64
|
||||||
|
SetClassLongPtr(hwnd, GCLP_HICON, (LONG_PTR) icon);
|
||||||
|
#else
|
||||||
SetClassLong(hwnd, GCL_HICON, (LONG) icon);
|
SetClassLong(hwnd, GCL_HICON, (LONG) icon);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void PL_VID_Shutdown (void)
|
void PL_VID_Shutdown (void)
|
||||||
|
|
Loading…
Reference in a new issue