|
|
@ -35,30 +35,39 @@ void V_CalcViewRect( void ) |
|
|
|
int sb_lines; |
|
|
|
int sb_lines; |
|
|
|
float size; |
|
|
|
float size; |
|
|
|
|
|
|
|
|
|
|
|
// intermission is always full screen
|
|
|
|
if( FBitSet( host.features, ENGINE_QUAKE_COMPATIBLE )) |
|
|
|
if( cl.intermission ) size = 120.0f; |
|
|
|
{ |
|
|
|
else size = scr_viewsize->value; |
|
|
|
// intermission is always full screen
|
|
|
|
|
|
|
|
if( cl.intermission ) size = 120.0f; |
|
|
|
|
|
|
|
else size = scr_viewsize->value; |
|
|
|
|
|
|
|
|
|
|
|
if( size >= 120.0f ) |
|
|
|
if( size >= 120.0f ) |
|
|
|
sb_lines = 0; // no status bar at all
|
|
|
|
sb_lines = 0; // no status bar at all
|
|
|
|
else if( size >= 110.0f ) |
|
|
|
else if( size >= 110.0f ) |
|
|
|
sb_lines = 24; // no inventory
|
|
|
|
sb_lines = 24; // no inventory
|
|
|
|
else sb_lines = 48; |
|
|
|
else sb_lines = 48; |
|
|
|
|
|
|
|
|
|
|
|
if( scr_viewsize->value >= 100.0f ) |
|
|
|
if( scr_viewsize->value >= 100.0f ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
full = true; |
|
|
|
full = true; |
|
|
|
size = 100.0f; |
|
|
|
size = 100.0f; |
|
|
|
} |
|
|
|
} |
|
|
|
else size = scr_viewsize->value; |
|
|
|
else size = scr_viewsize->value; |
|
|
|
|
|
|
|
|
|
|
|
if( cl.intermission ) |
|
|
|
if( cl.intermission ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
size = 100.0f; |
|
|
|
|
|
|
|
sb_lines = 0; |
|
|
|
|
|
|
|
full = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
size /= 100.0f; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
size = 100.0f; |
|
|
|
|
|
|
|
sb_lines = 0; |
|
|
|
|
|
|
|
full = true; |
|
|
|
full = true; |
|
|
|
|
|
|
|
sb_lines = 0; |
|
|
|
|
|
|
|
size = 1.0f; |
|
|
|
} |
|
|
|
} |
|
|
|
size /= 100.0f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clgame.viewport[2] = refState.width * size; |
|
|
|
clgame.viewport[2] = refState.width * size; |
|
|
|
clgame.viewport[3] = refState.height * size; |
|
|
|
clgame.viewport[3] = refState.height * size; |
|
|
|