mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 12:11:34 +00:00
hopefully a little closer to compiling
This commit is contained in:
parent
29532ecedc
commit
caf7d73751
1 changed files with 15 additions and 9 deletions
|
@ -29,14 +29,24 @@
|
||||||
$Id$
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "vid_common.h"
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "va.h"
|
#include "config.h"
|
||||||
#include "glquake.h"
|
#endif
|
||||||
#include "sbar.h"
|
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/fxmesa.h>
|
#include <GL/fxmesa.h>
|
||||||
#include <glide/sst1vid.h>
|
#include <glide/sst1vid.h>
|
||||||
|
#include <sys/signal.h>
|
||||||
|
|
||||||
|
#include "console.h"
|
||||||
|
#include "glquake.h"
|
||||||
|
#include "qargs.h"
|
||||||
|
#include "qendian.h"
|
||||||
|
#include "quakedef.h"
|
||||||
|
#include "quakefs.h"
|
||||||
|
#include "sbar.h"
|
||||||
|
#include "sys.h"
|
||||||
|
#include "va.h"
|
||||||
|
|
||||||
#define WARP_WIDTH 320
|
#define WARP_WIDTH 320
|
||||||
#define WARP_HEIGHT 200
|
#define WARP_HEIGHT 200
|
||||||
|
@ -212,7 +222,6 @@ VID_Init(unsigned char *palette)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
GLint attribs[32];
|
GLint attribs[32];
|
||||||
char gldir[MAX_OSPATH];
|
|
||||||
|
|
||||||
VID_GetWindowSize (640, 480);
|
VID_GetWindowSize (640, 480);
|
||||||
|
|
||||||
|
@ -270,15 +279,12 @@ VID_Init(unsigned char *palette)
|
||||||
|
|
||||||
GL_Init();
|
GL_Init();
|
||||||
|
|
||||||
snprintf(gldir, sizeof(gldir), "%s/glquake", com_gamedir);
|
|
||||||
Sys_mkdir (gldir);
|
|
||||||
|
|
||||||
VID_SetPalette(palette);
|
VID_SetPalette(palette);
|
||||||
|
|
||||||
// Check for 3DFX Extensions and initialize them.
|
// Check for 3DFX Extensions and initialize them.
|
||||||
VID_Init8bitPalette();
|
VID_Init8bitPalette();
|
||||||
|
|
||||||
Con_Printf ("Video mode %dx%d initialized.\n", width, height);
|
Con_Printf ("Video mode %dx%d initialized.\n", scr_width, scr_height);
|
||||||
|
|
||||||
vid.recalc_refdef = 1; // force a surface cache flush
|
vid.recalc_refdef = 1; // force a surface cache flush
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue