[nexuiz-commits] r8459 - trunk/data/qcsrc/menu

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Dec 26 15:29:34 EST 2009


Author: div0
Date: 2009-12-26 15:29:34 -0500 (Sat, 26 Dec 2009)
New Revision: 8459

Modified:
   trunk/data/qcsrc/menu/menu.qc
Log:
fix menu aspect fixing :(


Modified: trunk/data/qcsrc/menu/menu.qc
===================================================================
--- trunk/data/qcsrc/menu/menu.qc	2009-12-26 19:51:38 UTC (rev 8458)
+++ trunk/data/qcsrc/menu/menu.qc	2009-12-26 20:29:34 UTC (rev 8459)
@@ -70,10 +70,10 @@
 	}
 	screenconwidth = conwidth;
 	screenconheight = conheight;
-	if(conwidth < 800)
+	if(conwidth < 600 * MENU_ASPECT)
 	{
-		conheight *= 800 / conwidth;
-		conwidth = 800;
+		conheight *= 600 * MENU_ASPECT / conwidth;
+		conwidth = 600 * MENU_ASPECT;
 	}
 	if(conheight < 600)
 	{



More information about the nexuiz-commits mailing list