- 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
@@ -248,6 +248,16 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder)
|
||||
}
|
||||
}
|
||||
|
||||
if( videoInfo->current_h > 0 ) {
|
||||
glConfig.vidWidth = videoInfo->current_w;
|
||||
glConfig.vidHeight = videoInfo->current_h;
|
||||
} else {
|
||||
glConfig.vidWidth = 480;
|
||||
glConfig.vidHeight = 640;
|
||||
ri.Printf( PRINT_ALL,
|
||||
"Cannot determine display resolution, assuming 640x480\n" );
|
||||
}
|
||||
|
||||
ri.Printf (PRINT_ALL, "...setting mode %d:", mode );
|
||||
|
||||
if ( !R_GetModeInfo( &glConfig.vidWidth, &glConfig.vidHeight, &glConfig.windowAspect, mode ) )
|
||||
|
||||
Reference in new issue
Block a user