From: DeaDDooMER Date: Tue, 26 Jul 2022 21:50:22 +0000 (+0300) Subject: gl: draw game time X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=89aefa5014cb0dcaac0bac925dd0bd82da0f979a;p=d2df-sdl.git gl: draw game time --- diff --git a/src/game/renders/opengl/r_render.pas b/src/game/renders/opengl/r_render.pas index f9c0024..a11ca7f 100644 --- a/src/game/renders/opengl/r_render.pas +++ b/src/game/renders/opengl/r_render.pas @@ -1229,7 +1229,11 @@ implementation r_Common_DrawText('UPS: ' + IntToStr(UPS), 0, 16, 255, 255, 255, 255, stdfont, TBasePoint.BP_LEFTUP); end; - // TODO gShowTime + if gGameOn and gShowTime then + begin + r_Common_DrawText(r_Common_TimeToStr(gTime), gScreenWidth - 4, gScreenHeight - 1, 255, 255, 255, 255, stdfont, TBasePoint.BP_RIGHTDOWN); + end; + // TODO draw profilers // TODO draw holmes interface