mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-31 09:01:54 +00:00
- Added r_mode -2 for using display resolution.
- Changed q3_ui's very high video settings use display resolution.
This commit is contained in:
parent
8e689739f4
commit
1609d1c42b
3 changed files with 41 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue