Browse Source

engine: platform: sdl: fix incorrect HICON cast in SetClassLongPtr call

pull/2/head
Alibek Omarov 2 years ago
parent
commit
098c4c009b
  1. 2
      engine/platform/sdl/vid_sdl.c

2
engine/platform/sdl/vid_sdl.c

@ -619,7 +619,7 @@ static void WIN_SetWindowIcon( HICON ico ) @@ -619,7 +619,7 @@ static void WIN_SetWindowIcon( HICON ico )
if( SDL_GetWindowWMInfo( host.hWnd, &wminfo ) )
{
SetClassLongPtr( wminfo.info.win.window, GCLP_HICON, (LONG)ico );
SetClassLongPtr( wminfo.info.win.window, GCLP_HICON, (LONG_PTR)ico );
}
}
#endif

Loading…
Cancel
Save