- Added r_mode -2 for using display resolution.
- Changed q3_ui's very high video settings use display resolution.
This commit is contained in:
1 parent
8e689739f4
commit
1609d1c42b
3 files changed
+41
-8
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user