mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-22 17:41:11 +00:00
IOQ3 commit 2311
This commit is contained in:
parent
dcde1e2712
commit
661298c948
2 changed files with 18 additions and 6 deletions
|
@ -273,6 +273,8 @@ New cvars
|
||||||
captured using screenshotJPEG
|
captured using screenshotJPEG
|
||||||
r_aviMotionJpegQuality - Controls quality of video capture when
|
r_aviMotionJpegQuality - Controls quality of video capture when
|
||||||
cl_aviMotionJpeg is enabled
|
cl_aviMotionJpeg is enabled
|
||||||
|
r_mode -2 - This new video mode automatically uses the
|
||||||
|
desktop resolution.
|
||||||
|
|
||||||
New commands
|
New commands
|
||||||
video [filename] - start video capture (use with demo command)
|
video [filename] - start video capture (use with demo command)
|
||||||
|
|
|
@ -250,13 +250,23 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder)
|
||||||
|
|
||||||
ri.Printf (PRINT_ALL, "...setting mode %d:", mode );
|
ri.Printf (PRINT_ALL, "...setting mode %d:", mode );
|
||||||
|
|
||||||
if (mode == -2)
|
if (mode == -2)
|
||||||
{
|
{
|
||||||
glConfig.vidWidth = videoInfo->current_w;
|
// use desktop video resolution
|
||||||
glConfig.vidHeight = videoInfo->current_h;
|
if( videoInfo->current_h > 0 )
|
||||||
glConfig.windowAspect = displayAspect;
|
{
|
||||||
fullscreen = qtrue;
|
glConfig.vidWidth = videoInfo->current_w;
|
||||||
noborder = qtrue;
|
glConfig.vidHeight = videoInfo->current_h;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
glConfig.vidWidth = 480;
|
||||||
|
glConfig.vidHeight = 640;
|
||||||
|
ri.Printf( PRINT_ALL,
|
||||||
|
"Cannot determine display resolution, assuming 640x480\n" );
|
||||||
|
}
|
||||||
|
|
||||||
|
glConfig.windowAspect = (float)glConfig.vidWidth / (float)glConfig.vidHeight;
|
||||||
}
|
}
|
||||||
else if ( !R_GetModeInfo( &glConfig.vidWidth, &glConfig.vidHeight, &glConfig.windowAspect, mode ) )
|
else if ( !R_GetModeInfo( &glConfig.vidWidth, &glConfig.vidHeight, &glConfig.windowAspect, mode ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue