- More reformatting

This commit is contained in:
Jamie Wilkinson 2002-07-06 02:23:15 +00:00
parent abc8f0841e
commit 57216af19f
2 changed files with 25 additions and 33 deletions

View file

@ -29,18 +29,13 @@
#endif
/* merged in from irix/vid_so.c -- jaq */
/*
#ifdef __sgi
#define SO_FILE "/etc/quake2.conf"
#endif
#include <assert.h>
/*
#ifdef HAVE_DLOPEN
# include <dlfcn.h> // ELF dl loader
#endif
*/
#include <assert.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
@ -143,23 +138,20 @@ simply by setting the modified flag for the vid_ref variable, which will
cause the entire video mode and refresh DLL to be reset on the next frame.
============
*/
void VID_Restart_f (void)
{
void VID_Restart_f(void) {
vid_ref->modified = true;
}
/*
** VID_GetModeInfo
*/
typedef struct vidmode_s
{
typedef struct vidmode_s {
const char * description;
int width, height;
int mode;
} vidmode_t;
vidmode_t vid_modes[] =
{
vidmode_t vid_modes[] = {
{ "Mode 0: 320x240", 320, 240, 0 },
{ "Mode 1: 400x300", 400, 300, 1 },
{ "Mode 2: 512x384", 512, 384, 2 },
@ -232,14 +224,14 @@ qboolean VID_LoadRefresh(char * name) {
/* clean up a previous reflib */
if (reflib_active) {
re.Shutdown();
VID_FreeReflib();
if (KBD_Close_fp)
KBD_Close_fp();
if (RW_IN_Shutdown_fp)
RW_IN_Shutdown_fp();
KBD_Close_fp = NULL;
RW_IN_Shutdown_fp = NULL;
re.Shutdown();
VID_FreeReflib ();
}
Com_Printf( "------- Loading %s -------\n", name );