- Added r_mode -2 for using display resolution.

- Changed q3_ui's very high video settings use display resolution.
This commit is contained in:
Zack Middleton 2011-08-11 05:14:42 +00:00
parent 8e689739f4
commit 1609d1c42b
3 changed files with 41 additions and 8 deletions

View file

@ -292,14 +292,17 @@ qboolean R_GetModeInfo( int *width, int *height, float *windowAspect, int mode )
vidmode_t *vm;
float pixelAspect;
if ( mode < -1 ) {
if ( mode < -2 ) {
return qfalse;
}
if ( mode >= s_numVidModes ) {
return qfalse;
}
if ( mode == -1 ) {
if ( mode == -2 ) {
// Must set width and height to display size before calling this function!
pixelAspect = 1.0f;
} else if ( mode == -1 ) {
*width = r_customwidth->integer;
*height = r_customheight->integer;
pixelAspect = r_customPixelAspect->value;