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:
sezero 2010-02-17 16:39:20 +00:00
parent 2923910635
commit 46326769ae

View file

@ -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)