mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
window icon should be set after window creation in SDL2.
This commit is contained in:
parent
85683a04c9
commit
2313298d14
1 changed files with 7 additions and 0 deletions
|
@ -1726,11 +1726,18 @@ void VID_Init (void)
|
|||
vid.colormap = host_colormap;
|
||||
vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048));
|
||||
|
||||
#if !defined(USE_SDL2)
|
||||
// set window icon
|
||||
PL_SetWindowIcon();
|
||||
#endif
|
||||
|
||||
VID_SetMode (width, height, refreshrate, bpp, fullscreen);
|
||||
|
||||
#if defined(USE_SDL2)
|
||||
// set window icon
|
||||
PL_SetWindowIcon();
|
||||
#endif
|
||||
|
||||
GL_Init ();
|
||||
GL_SetupState ();
|
||||
Cmd_AddCommand ("gl_info", GL_Info_f); //johnfitz
|
||||
|
|
Loading…
Reference in a new issue