From: havoc Date: Tue, 20 Aug 2002 02:57:12 +0000 (+0000) Subject: centered Sbar_IntermissionOverlay X-Git-Tag: RELEASE_0_2_0_RC1~333 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c93b7810eab710cd533e2840367891b2168724eb;p=xonotic%2Fdarkplaces.git centered Sbar_IntermissionOverlay git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2260 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sbar.c b/sbar.c index 510ae646..52bb7da7 100644 --- a/sbar.c +++ b/sbar.c @@ -1043,11 +1043,11 @@ void Sbar_IntermissionOverlay (void) return; } - sbar_x = 0; - sbar_y = 0; + sbar_x = (vid.conwidth - 320) >> 1; + sbar_y = (vid.conheight - 200) >> 1; - DrawQ_Pic (64, 24, "gfx/complete.lmp", 0, 0, 1, 1, 1, 1, 0); - DrawQ_Pic (0, 56, "gfx/inter.lmp", 0, 0, 1, 1, 1, 1, 0); + DrawQ_Pic (sbar_x + 64, sbar_y + 24, "gfx/complete.lmp", 0, 0, 1, 1, 1, 1, 0); + DrawQ_Pic (sbar_x + 0, sbar_y + 56, "gfx/inter.lmp", 0, 0, 1, 1, 1, 1, 0); // time dig = cl.completed_time/60;