From d79a5487bc07c084167a19bd2695d46036df26b0 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 27 Mar 2008 03:00:49 +0000 Subject: [PATCH] Fix flashing connect screen, see https://bugzilla.icculus.org/show_bug.cgi?id=3425. --- code/client/cl_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 211907e6..ea9e0c93 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -778,6 +778,10 @@ void CL_MapLoading( void ) { Q_strncpyz( cls.servername, "localhost", sizeof(cls.servername) ); cls.state = CA_CHALLENGING; // so the connect screen is drawn Key_SetCatcher( 0 ); + /* Execute next line twice, so that the connect image gets written into both, front- and + * back buffer. This is necessary to prevent a flashing screen on map startup, as the UI gets + * killed for a short time and cannot update the screen. */ + SCR_UpdateScreen(); SCR_UpdateScreen(); clc.connectTime = -RETRANSMIT_TIMEOUT; NET_StringToAdr( cls.servername, &clc.serverAddress);