X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=71f73cdb330229c75467392d2476f2a087bb0fd9;hb=567cfcb396e3fc031a25362b747dd0a5a096b4ec;hp=236361866c8f39fa7256e8ae5c4f4527d12b540c;hpb=6a4e096460bdde9baf30f95a4da109355ceb849f;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index 23636186..71f73cdb 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3585,9 +3585,7 @@ void HandleTypeName(int newxpos, Key key) xpos = newxpos; -#if defined(TARGET_SDL2) - SDL_StartTextInput(); -#endif + StartTextInput(startx, starty, pos->width, pos->height); } 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(); } }