mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
Use a saner default video resolution.
320x200 is way too small these days.
This commit is contained in:
parent
4d6fe3694d
commit
d6766a07c5
4 changed files with 4 additions and 8 deletions
|
@ -444,7 +444,7 @@ VID_Init (byte *palette, byte *colormap)
|
||||||
Cmd_AddCommand ("vid_fbset", VID_fbset_f, "No Description");
|
Cmd_AddCommand ("vid_fbset", VID_fbset_f, "No Description");
|
||||||
|
|
||||||
/* Interpret command-line params */
|
/* Interpret command-line params */
|
||||||
VID_GetWindowSize (320, 200);
|
VID_GetWindowSize (640, 480);
|
||||||
|
|
||||||
modestr = get_mode (viddef.width, viddef.height, 8);
|
modestr = get_mode (viddef.width, viddef.height, 8);
|
||||||
|
|
||||||
|
|
|
@ -54,10 +54,6 @@
|
||||||
HWND mainwindow;
|
HWND mainwindow;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// The original defaults
|
|
||||||
#define BASEWIDTH 320
|
|
||||||
#define BASEHEIGHT 200
|
|
||||||
|
|
||||||
byte *VGA_pagebase;
|
byte *VGA_pagebase;
|
||||||
int VGA_width, VGA_height, VGA_rowbytes, VGA_bufferrowbytes = 0;
|
int VGA_width, VGA_height, VGA_rowbytes, VGA_bufferrowbytes = 0;
|
||||||
|
|
||||||
|
@ -248,7 +244,7 @@ VID_Init (byte *palette, byte *colormap)
|
||||||
viddef.fullbright = 256 - viddef.colormap8[256 * VID_GRADES];
|
viddef.fullbright = 256 - viddef.colormap8[256 * VID_GRADES];
|
||||||
|
|
||||||
// Set up display mode (width and height)
|
// Set up display mode (width and height)
|
||||||
VID_GetWindowSize (BASEWIDTH, BASEHEIGHT);
|
VID_GetWindowSize (640, 480);
|
||||||
|
|
||||||
// Set video width, height and flags
|
// Set video width, height and flags
|
||||||
flags = (SDL_SWSURFACE | SDL_HWPALETTE);
|
flags = (SDL_SWSURFACE | SDL_HWPALETTE);
|
||||||
|
|
|
@ -374,7 +374,7 @@ VID_Init (byte *palette, byte *colormap)
|
||||||
VID_InitModes ();
|
VID_InitModes ();
|
||||||
|
|
||||||
/* Interpret command-line params */
|
/* Interpret command-line params */
|
||||||
VID_GetWindowSize (320, 200);
|
VID_GetWindowSize (640, 480);
|
||||||
|
|
||||||
current_mode = get_mode (vid.width, vid.height, 8);
|
current_mode = get_mode (vid.width, vid.height, 8);
|
||||||
|
|
||||||
|
|
|
@ -679,7 +679,7 @@ VID_Init (byte *palette, byte *colormap)
|
||||||
|
|
||||||
srandom (getpid ());
|
srandom (getpid ());
|
||||||
|
|
||||||
VID_GetWindowSize (320, 200);
|
VID_GetWindowSize (640, 480);
|
||||||
X11_OpenDisplay ();
|
X11_OpenDisplay ();
|
||||||
choose_visual ();
|
choose_visual ();
|
||||||
X11_SetVidMode (viddef.width, viddef.height);
|
X11_SetVidMode (viddef.width, viddef.height);
|
||||||
|
|
Loading…
Reference in a new issue