[nexuiz-commits] r8461 - trunk/data/qcsrc/menu
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Dec 26 15:38:56 EST 2009
Author: div0
Date: 2009-12-26 15:38:56 -0500 (Sat, 26 Dec 2009)
New Revision: 8461
Modified:
trunk/data/qcsrc/menu/menu.qc
Log:
reintroduce the 640x480 hack as I have found out what it was good for
Modified: trunk/data/qcsrc/menu/menu.qc
===================================================================
--- trunk/data/qcsrc/menu/menu.qc 2009-12-26 20:35:36 UTC (rev 8460)
+++ trunk/data/qcsrc/menu/menu.qc 2009-12-26 20:38:56 UTC (rev 8461)
@@ -41,6 +41,7 @@
}
float MENU_ASPECT = 1.25; // 1280x1024
+float MENU_MINHEIGHT = 600;
float conwidth_s, conheight_s, realconwidth, realconheight, screenconwidth, screenconheight;
void draw_reset_cropped()
{
@@ -70,18 +71,16 @@
}
screenconwidth = conwidth;
screenconheight = conheight;
-#if 0
- if(conwidth < 600 * MENU_ASPECT)
+ if(conwidth < MENU_MINHEIGHT * MENU_ASPECT)
{
- conheight *= 600 * MENU_ASPECT / conwidth;
- conwidth = 600 * MENU_ASPECT;
+ conheight *= MENU_MINHEIGHT * MENU_ASPECT / conwidth;
+ conwidth = MENU_MINHEIGHT * MENU_ASPECT;
}
- if(conheight < 600)
+ if(conheight < MENU_MINHEIGHT)
{
- conwidth *= 600 / conheight;
- conheight = 600;
+ conwidth *= MENU_MINHEIGHT / conheight;
+ conheight = MENU_MINHEIGHT;
}
-#endif
if(main)
{
if(conwidth_s != conwidth || conheight_s != conheight)
More information about the nexuiz-commits
mailing list