diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-06-11 20:18:16 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-09 22:41:24 +0000 |
commit | fefb9162a9b4a02df9a4e887d350a2064f761b9f (patch) | |
tree | 2cc35f8c0cfe89cabb27722eb4d16dc10a2ce358 | |
parent | 30717c2b9c5facda59a0f718e9aa9c44beb0cc3e (diff) |
Bug 5034 - q3_ui: fill whole screen and allow cursor to move to edge in widescreen, patch by Zack Middleton
-rw-r--r-- | src/client/cl_scrn.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/cl_scrn.c b/src/client/cl_scrn.c index c8568472..e0c3f7d5 100644 --- a/src/client/cl_scrn.c +++ b/src/client/cl_scrn.c @@ -461,11 +461,15 @@ This will be called twice if rendering in stereo mode ================== */ void SCR_DrawScreenField( stereoFrame_t stereoFrame ) { + qboolean uiFullscreen; + re.BeginFrame( stereoFrame ); + uiFullscreen = VM_Call( uivm, UI_IS_FULLSCREEN ); + // wide aspect ratio screens need to have the sides cleared // unless they are displaying game renderings - if ( cls.state != CA_ACTIVE && cls.state != CA_CINEMATIC ) { + if ( uiFullscreen || (cls.state != CA_ACTIVE && cls.state != CA_CINEMATIC) ) { if ( cls.glconfig.vidWidth * 480 > cls.glconfig.vidHeight * 640 ) { re.SetColor( g_color_table[0] ); re.DrawStretchPic( 0, 0, cls.glconfig.vidWidth, cls.glconfig.vidHeight, 0, 0, 0, 0, cls.whiteShader ); @@ -475,7 +479,7 @@ void SCR_DrawScreenField( stereoFrame_t stereoFrame ) { // if the menu is going to cover the entire screen, we // don't need to render anything under it - if ( uivm && !VM_Call( uivm, UI_IS_FULLSCREEN )) { + if ( uivm && !uiFullscreen ) { switch( cls.state ) { default: Com_Error( ERR_FATAL, "SCR_DrawScreenField: bad cls.state" ); |