From e887dc54405dcdea33aa6ba85a38887bfe902a59 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Mon, 14 May 2018 16:58:47 +0300 Subject: [PATCH] Added shadow to vkbd text --- src/game/g_touch.pas | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/game/g_touch.pas b/src/game/g_touch.pas index 1778eca..cab5c77 100644 --- a/src/game/g_touch.pas +++ b/src/game/g_touch.pas @@ -168,11 +168,6 @@ implementation end end; - procedure DrawRect(x, y, w, h: Integer); - begin - e_DrawQuad(x, y, x + w, y + h, 0, 255, 0, 31); - end; - function IntersectControl(ctl, xx, yy: Integer): Boolean; var x, y, w, h: Integer; @@ -308,8 +303,8 @@ implementation GetKeyRect(i, x, y, w, h, founded); if founded then begin - DrawRect(x, y, w, h); - e_TextureFontPrint(x, y, GetKeyName(i), gStdFont) + e_DrawQuad(x, y, x + w, y + h, 0, 255, 0, 31); + e_TextureFontPrintEx(x, y, GetKeyName(i), gStdFont, 255, 255, 255, 1, True) end; end; {$ENDIF} -- 2.11.4.GIT