From 39f50ee719c2ce2831fba12c53f358ece98563b9 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 3 Sep 2022 17:25:56 +0200 Subject: [PATCH] fixed using delay counter for Android --- src/libgame/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libgame/system.c b/src/libgame/system.c index 83bbe67a..5916fdcc 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -1812,7 +1812,7 @@ void StartTextInput(int x, int y, int width, int height) if (y + height > SCREEN_KEYBOARD_POS(video.height)) { video.shifted_up_pos = y + height - SCREEN_KEYBOARD_POS(video.height); - video.shifted_up_delay = SDL_GetTicks(); + video.shifted_up_delay.count = SDL_GetTicks(); video.shifted_up = TRUE; } #endif @@ -1828,7 +1828,7 @@ void StopTextInput(void) if (video.shifted_up) { video.shifted_up_pos = 0; - video.shifted_up_delay = SDL_GetTicks(); + video.shifted_up_delay.count = SDL_GetTicks(); video.shifted_up = FALSE; } #endif -- 2.34.1