mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
fix SDL2 compilation using g++
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1031 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
a21d18a4ec
commit
8091edb1ef
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ void PL_SetWindowIcon (void)
|
|||
colorkey = SDL_MapRGB(icon->format, 255, 0, 255);
|
||||
#if defined(USE_SDL2)
|
||||
SDL_SetColorKey(icon, SDL_TRUE, colorkey);
|
||||
SDL_SetWindowIcon(VID_GetWindow(), icon);
|
||||
SDL_SetWindowIcon((SDL_Window*) VID_GetWindow(), icon);
|
||||
#else
|
||||
SDL_SetColorKey(icon, SDL_SRCCOLORKEY, colorkey);
|
||||
SDL_WM_SetIcon(icon, NULL);
|
||||
|
|
|
@ -52,7 +52,7 @@ void PL_SetWindowIcon (void)
|
|||
SDL_VERSION(&wminfo.version);
|
||||
|
||||
#if defined(USE_SDL2)
|
||||
if (SDL_GetWindowWMInfo(VID_GetWindow(), &wminfo) != SDL_TRUE)
|
||||
if (SDL_GetWindowWMInfo((SDL_Window*) VID_GetWindow(), &wminfo) != SDL_TRUE)
|
||||
return; /* wrong SDL version */
|
||||
|
||||
hwnd = wminfo.info.win.window;
|
||||
|
|
Loading…
Reference in a new issue