minimize console when window is created
@@ -258,9 +258,13 @@ HL_PRIM SDL_Window *HL_NAME(win_create)(vbyte *title, int width, int height) {
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
w = SDL_CreateWindow((char*)title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE);
+# ifdef HL_WIN
// force window to show even if the debugger force process windows to be hidden
SDL_HideWindow(w);
SDL_ShowWindow(w);
+ HWND console = GetConsoleWindow();
+ if( console ) ShowWindow(console, SW_MINIMIZE);
+# endif
return w;
}
