Browse Source

platform: win32: properly change icon

pull/2/head
Velaron 2 years ago committed by Alibek Omarov
parent
commit
e27ac6b092
  1. 3
      engine/platform/sdl/vid_sdl.c

3
engine/platform/sdl/vid_sdl.c

@ -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…
Cancel
Save