]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
again a slight visual improvement(?) of the loading bar
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Apr 2009 14:31:46 +0000 (14:31 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Apr 2009 14:31:46 +0000 (14:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8878 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index 3d75c0b828a22e42103922d161ff4eb5e33deedf..ab7934f104a43b7cb156a2a2f907b1d39c340081 100644 (file)
@@ -1758,7 +1758,7 @@ static float SCR_DrawLoadingStack_r(loadingscreenstack_t *s, float y)
                len = strlen(s->msg);
                x = (vid_conwidth.integer - DrawQ_TextWidth_Font(s->msg, len, true, FONT_INFOBAR) * size) / 2;
                y -= size;
-               DrawQ_Fill(0, y, vid_conwidth.integer, size, 0, 0, 0, 1, 0);
+               DrawQ_Fill(0, y, vid_conwidth.integer, size, 0, 0, 0, 0.5, 0);
                DrawQ_String_Font(x, y, s->msg, len, size, size, 1, 1, 1, 1, 0, NULL, true, FONT_INFOBAR);
                total += size;
        }
@@ -1885,10 +1885,13 @@ void SCR_UpdateLoadingScreen (qboolean clear)
        if (vid_hidden || !scr_refresh.integer || cls.state == ca_dedicated)
                return;
        
+       if(loadingscreentime == realtime)
+               clear |= loadingscreencleared;
+
        if(clear)
-               SCR_ClearLoadingScreenTexture();
+               SCR_ClearLoadingScreenTexture();
        else if(loadingscreentime != realtime)
-               SCR_SetLoadingScreenTexture();
+               SCR_SetLoadingScreenTexture();
 
        if(loadingscreentime != realtime)
        {