mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-13 22:21:34 +00:00
- More reformatting
This commit is contained in:
parent
abc8f0841e
commit
57216af19f
2 changed files with 25 additions and 33 deletions
22
src/vid_so.c
22
src/vid_so.c
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue