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