- The "Yay, the server is finally back online" checkin.

- Added resolutions for the Sony Vaio Pocketbook and the
  Apple Titanium Powerbook, as well as a note in HACKING for
  people wishing to add their own resolutions.  (Closes #33)

  I have an idea involving querying the X server for supported
  resolutions at runtime, or through some API that we can
  use to do it portably (to SVGA/3dfx/Win32).
This commit is contained in:
Jamie Wilkinson 2002-05-07 07:57:59 +00:00
parent d0119ede51
commit 065a525d4f
4 changed files with 23 additions and 6 deletions

13
HACKING
View File

@ -13,3 +13,16 @@ at TODO in the top level source tree, or open a browser at
http://bugs.quakeforge.net/bugs/cgi-bin/pkgreport.cgi?pkg=quake2&archive=no
for the currently open bug reports.
Adding a new screen resolution
------------------------------
Open up src/vid_so.c and find the array "vid_modes". Append your resolution
to this array:
{ "Mode n: RESxRES", RES, RES, n }
Open up src/vid_menu.c and find the array "resolutions" in VID_MenuInit().
Append your resolution so it is the same index as your addition to vid_modes.
Save both, rebuild.

2
TODO
View File

@ -40,5 +40,5 @@ X Stencil buffered shadows
- Adding a FPS counter
- Quake2 MP3 Playback
- Adding a skybox size variable
- Adding new video resolutions
X Adding new video resolutions
- Drawing alias model bounding boxes

View File

@ -235,6 +235,8 @@ void VID_MenuInit( void )
"[1280 1024]",
"[1600 1200]",
"[2048 1536]", /* irix/vid_menu.c -- jaq */
"[1024 480 ]", /* sony vaio pocketbook */
"[1152 768 ]", /* applie tibook */
0
};
static const char *refs[] =

View File

@ -1,4 +1,8 @@
/* $Id$
*
* Main windowed and fullscreen graphics interface module. This module
* is used for both the software and OpenGL rendering versions of the
* Quake refresh engine.
*
* Copyright (C) 1997-2001 Id Software, Inc.
* Copyright (c) 2002 The Quakeforge Project.
@ -19,10 +23,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Main windowed and fullscreen graphics interface module. This module
// is used for both the software and OpenGL rendering versions of the
// Quake refresh engine.
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
@ -179,7 +179,9 @@ vidmode_t vid_modes[] =
{ "Mode 7: 1152x864", 1152, 864, 7 },
{ "Mode 8: 1280x1024", 1280, 1024, 8 },
{ "Mode 9: 1600x1200", 1600, 1200, 9 },
{ "Mode 10: 2048x1536", 2048, 1536, 10 }
{ "Mode 10: 2048x1536", 2048, 1536, 10 },
{ "Mode 11: 1024x480", 1024, 480, 11 }, /* Sony VAIO Pocketbook */
{ "Mode 12: 1152x768", 1152, 768, 12 } /* Apple TiBook */
};
qboolean VID_GetModeInfo( unsigned int *width, unsigned int *height, int mode )