added shifting up video display when activating screen keyboard (Android)
[rocksndiamonds.git] / src / screens.c
index 236361866c8f39fa7256e8ae5c4f4527d12b540c..d38878c320e33c53c66577debb3b1148b1bfa6b5 100644 (file)
@@ -3585,9 +3585,7 @@ void HandleTypeName(int newxpos, Key key)
 
     xpos = newxpos;
 
-#if defined(TARGET_SDL2)
-    SDL_StartTextInput();
-#endif
+    StartTextInput(startx, starty);
   }
   else if (is_valid_key_char && xpos < MAX_PLAYER_NAME_LEN)
   {
@@ -3634,9 +3632,7 @@ void HandleTypeName(int newxpos, Key key)
 
     DrawText(startx, starty, setup.player_name, font_nr);
 
-#if defined(TARGET_SDL2)
-    SDL_StopTextInput();
-#endif
+    StopTextInput();
   }
 }