mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
platform: win32: properly change icon
This commit is contained in:
parent
7333ddc1d9
commit
e27ac6b092
@ -619,7 +619,8 @@ static void WIN_SetWindowIcon( HICON ico )
|
|||||||
|
|
||||||
if( SDL_GetWindowWMInfo( host.hWnd, &wminfo ) )
|
if( SDL_GetWindowWMInfo( host.hWnd, &wminfo ) )
|
||||||
{
|
{
|
||||||
SetClassLongPtr( wminfo.info.win.window, GCLP_HICON, (LONG_PTR)ico );
|
SendMessage( wminfo.info.win.window, WM_SETICON, ICON_SMALL, (LONG_PTR)ico );
|
||||||
|
SendMessage( wminfo.info.win.window, WM_SETICON, ICON_BIG, (LONG_PTR)ico );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user