[PATCH] additional vidModes

Erik Auerswald auerswal at unix-ag.uni-kl.de
Sun Jan 15 23:53:08 EST 2006


Hi,

attached patch adds some video modes to quake3. Most of these modes are
copied from icculus.org quake2, the 1280x960 mode is my preferred 4:3
video mode on 19" CRTs.

Erik
-------------- next part --------------
Index: code/q3_ui/ui_video.c
===================================================================
--- code/q3_ui/ui_video.c	(revision 495)
+++ code/q3_ui/ui_video.c	(working copy)
@@ -775,10 +775,20 @@
 		"960x720",
 		"1024x768",
 		"1152x864",
-		"1280x1024",
+		"1280x1024", /* 5:4 aspect ratio */
 		"1600x1200",
 		"2048x1536",
 		"856x480 wide screen",
+		"1280x960", /* 4:3 aspect ratio */
+		"1024x480", /* sony vaio pocketbook */
+		"1152x768", /* Apple TiBook */
+		"1280x854", /* Apple TiBook */
+		"640x400", /* generic 16:10 widescreen resolutions */
+		"800x500", /* as found on many modern notebooks    */
+		"1024x640",
+		"1280x800",
+		"1680x1050",
+		"1920x1200",
 		NULL
 	};
 	static const char *filter_names[] =
Index: code/renderer/tr_init.c
===================================================================
--- code/renderer/tr_init.c	(revision 495)
+++ code/renderer/tr_init.c	(working copy)
@@ -295,7 +295,17 @@
     { "Mode  8: 1280x1024",		1280,	1024,	1 },
     { "Mode  9: 1600x1200",		1600,	1200,	1 },
     { "Mode 10: 2048x1536",		2048,	1536,	1 },
-    { "Mode 11: 856x480 (wide)",856,	480,	1 }
+    { "Mode 11: 856x480 (wide)",	856,	480,	1 },
+    { "Mode 12: 1280x960",		1280,	960,	1 },
+    { "Mode 13: 1024x480",		1024,	480,	1 },
+    { "Mode 14: 1152x768",		1152,	768,	1 },
+    { "Mode 15: 1280x854",		1280,	854,	1 },
+    { "Mode 16: 640x400",		640,	400,	1 },
+    { "Mode 17: 800x500",		800,	500,	1 },
+    { "Mode 18: 1024x640",		1024,	640,	1 },
+    { "Mode 19: 1280x800",		1280,	800,	1 },
+    { "Mode 20: 1680x1050",		1680,	1050,	1 },
+    { "Mode 21: 1920x1200",		1920,	1200,	1 }
 };
 static int	s_numVidModes = ( sizeof( r_vidModes ) / sizeof( r_vidModes[0] ) );
 


More information about the quake3 mailing list