From: divverent Date: Mon, 6 Apr 2009 14:31:46 +0000 (+0000) Subject: again a slight visual improvement(?) of the loading bar X-Git-Tag: xonotic-v0.1.0preview~1731 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=914710875b8a1a548ef232cca90ac7d627c376ac;p=xonotic%2Fdarkplaces.git again a slight visual improvement(?) of the loading bar git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8878 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index 3d75c0b8..ab7934f1 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -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) {