[quake3-commits] r1890 - in trunk/code: client sdl

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Feb 10 14:21:13 EST 2011


Author: thilo
Date: 2011-02-10 14:21:13 -0500 (Thu, 10 Feb 2011)
New Revision: 1890

Modified:
   trunk/code/client/cl_main.c
   trunk/code/sdl/sdl_glimp.c
Log:
Add minimize command (#4531)


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2011-02-10 18:56:18 UTC (rev 1889)
+++ trunk/code/client/cl_main.c	2011-02-10 19:21:13 UTC (rev 1890)
@@ -129,6 +129,7 @@
 	void hA3Dg_ExportRenderGeom (refexport_t *incoming_re);
 #endif
 
+extern void GLimp_Minimize(void);
 extern void SV_BotFrame( int time );
 void CL_CheckForResend( void );
 void CL_ShowIP_f(void);
@@ -3271,6 +3272,7 @@
 	Cmd_AddCommand ("model", CL_SetModel_f );
 	Cmd_AddCommand ("video", CL_Video_f );
 	Cmd_AddCommand ("stopvideo", CL_StopVideo_f );
+	Cmd_AddCommand("minimize", GLimp_Minimize);
 	CL_InitRef();
 
 	SCR_Init ();

Modified: trunk/code/sdl/sdl_glimp.c
===================================================================
--- trunk/code/sdl/sdl_glimp.c	2011-02-10 18:56:18 UTC (rev 1889)
+++ trunk/code/sdl/sdl_glimp.c	2011-02-10 19:21:13 UTC (rev 1890)
@@ -101,6 +101,19 @@
 
 /*
 ===============
+GLimp_Minimize
+
+Minimize the game so that user is back at the desktop
+===============
+*/
+void GLimp_Minimize(void)
+{
+	SDL_WM_IconifyWindow();
+}
+
+
+/*
+===============
 GLimp_LogComment
 ===============
 */



More information about the quake3-commits mailing list