fixed using delay counter for Android
authorHolger Schemel <info@artsoft.org>
Sat, 3 Sep 2022 15:25:56 +0000 (17:25 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 3 Sep 2022 15:25:56 +0000 (17:25 +0200)
src/libgame/system.c

index 83bbe67a6c04aab4f81805b3f7fb809619eded40..5916fdcc63176373ffb2809e43cdb216d8853311 100644 (file)
@@ -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