Skip to content

Commit 68bf1ee

Browse files
committed
Remove random aspect-based screen clearing
The logic was this: if the user is not in-game and the window's aspect ratio is greater than 4:3, clear the screen. Otherwise do nothing.
1 parent 31c3003 commit 68bf1ee

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/engine/client/cl_scrn.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,6 @@ void SCR_DrawScreenField()
230230
{
231231
re.BeginFrame();
232232

233-
// wide aspect ratio screens need to have the sides cleared
234-
// unless they are displaying game renderings
235-
if ( cls.state != connstate_t::CA_ACTIVE )
236-
{
237-
if ( cls.glconfig.vidWidth * 480 > cls.glconfig.vidHeight * 640 )
238-
{
239-
re.SetColor( Color::Black );
240-
re.DrawStretchPic( 0, 0, cls.glconfig.vidWidth, cls.glconfig.vidHeight, 0, 0, 0, 0, cls.whiteShader );
241-
re.SetColor( Color::White );
242-
}
243-
}
244-
245233
if ( cgvm.IsActive() )
246234
{
247235
switch ( cls.state )

0 commit comments

Comments
 (0)