mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-12 23:54:07 +00:00
Add minimize command (#4531)
This commit is contained in:
parent
e05c9ad1c2
commit
a56e448850
2 changed files with 15 additions and 0 deletions
|
@ -129,6 +129,7 @@ int serverStatusCount;
|
||||||
void hA3Dg_ExportRenderGeom (refexport_t *incoming_re);
|
void hA3Dg_ExportRenderGeom (refexport_t *incoming_re);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern void GLimp_Minimize(void);
|
||||||
extern void SV_BotFrame( int time );
|
extern void SV_BotFrame( int time );
|
||||||
void CL_CheckForResend( void );
|
void CL_CheckForResend( void );
|
||||||
void CL_ShowIP_f(void);
|
void CL_ShowIP_f(void);
|
||||||
|
@ -3271,6 +3272,7 @@ void CL_Init( void ) {
|
||||||
Cmd_AddCommand ("model", CL_SetModel_f );
|
Cmd_AddCommand ("model", CL_SetModel_f );
|
||||||
Cmd_AddCommand ("video", CL_Video_f );
|
Cmd_AddCommand ("video", CL_Video_f );
|
||||||
Cmd_AddCommand ("stopvideo", CL_StopVideo_f );
|
Cmd_AddCommand ("stopvideo", CL_StopVideo_f );
|
||||||
|
Cmd_AddCommand("minimize", GLimp_Minimize);
|
||||||
CL_InitRef();
|
CL_InitRef();
|
||||||
|
|
||||||
SCR_Init ();
|
SCR_Init ();
|
||||||
|
|
|
@ -99,6 +99,19 @@ void GLimp_Shutdown( void )
|
||||||
Com_Memset( &glState, 0, sizeof( glState ) );
|
Com_Memset( &glState, 0, sizeof( glState ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
===============
|
||||||
|
GLimp_Minimize
|
||||||
|
|
||||||
|
Minimize the game so that user is back at the desktop
|
||||||
|
===============
|
||||||
|
*/
|
||||||
|
void GLimp_Minimize(void)
|
||||||
|
{
|
||||||
|
SDL_WM_IconifyWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===============
|
===============
|
||||||
GLimp_LogComment
|
GLimp_LogComment
|
||||||
|
|
Loading…
Reference in a new issue