From: DeaDDooMER Date: Wed, 14 Aug 2019 19:54:28 +0000 (+0300) Subject: fix console input on some window resolutions X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=6a9364772aa1d92cf10886b5d1cec54d557bcada;p=d2df-sdl.git fix console input on some window resolutions --- diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 7d95386..033a468 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -1000,17 +1000,16 @@ begin begin (* End open chat animation. Do not show console *) Cons_Y := -Floor(gScreenHeight * ConsoleHeight); - Cons_Shown := True; + Cons_Shown := False; InputReady := True; -// g_Touch_ShowKeyboard(True); end else - if Cons_Y > 0 then + if Cons_Y >= 0 then begin (* End open animation *) Cons_Y := 0; + Cons_Shown := True; InputReady := True; -// g_Touch_ShowKeyboard(True); end else if Cons_Y <= -Floor(gScreenHeight * ConsoleHeight) then @@ -1019,7 +1018,6 @@ begin Cons_Y := -Floor(gScreenHeight * ConsoleHeight); Cons_Shown := False; InputReady := False; -// g_Touch_ShowKeyboard(False); end; end;