From d6143f645f05757c4794415cf448dbf1ee234429 Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Sat, 19 Feb 2000 20:54:58 +0000 Subject: [PATCH] a few glx video cleanups --- common/gl_vidglx.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/common/gl_vidglx.c b/common/gl_vidglx.c index a2f2e90..6cab736 100644 --- a/common/gl_vidglx.c +++ b/common/gl_vidglx.c @@ -21,14 +21,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "qtypes.h" -#include "quakedef.h" -#include "glquake.h" -#include "cvar.h" -#include "console.h" -#include "sound.h" -#include "keys.h" -#include "menu.h" +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -62,7 +62,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # include # include #endif -#include "dga_check.h" +#include #ifdef XMESA # include @@ -431,14 +431,17 @@ void VID_Init(unsigned char *palette) vid.conwidth = width; vid.conwidth &= 0xfff8; // make it a multiple of eight - if(vid.conwidth < 320) vid.conwidth = 320; + if (vid.conwidth < 320) + vid.conwidth = 320; // pick a conheight that matches with correct aspect vid.conheight = vid.conwidth * 3 / 4; i = COM_CheckParm ("-conheight"); if ( i != 0 ) // Set console height, but no smaller than 200 px - vid.conheight = min(Q_atoi(com_argv[i+1]), 200); + vid.conheight = Q_atoi(com_argv[i+1]); + if (vid.conheight < 200) + vid.conheight = 200; x_disp = XOpenDisplay(NULL); if ( !x_disp ) { @@ -547,7 +550,8 @@ void VID_Init(unsigned char *palette) // Check for 3DFX Extensions and initialize them. VID_Init8bitPalette(); - Con_SafePrintf ("Video mode %dx%d initialized.\n", width, height); + Con_SafePrintf ("Video mode %dx%d initialized.\n", + width, height); vid.recalc_refdef = 1; // force a surface cache flush }