projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added functions to get current player position for all game engines
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 236361866c8f39fa7256e8ae5c4f4527d12b540c..71f73cdb330229c75467392d2476f2a087bb0fd9 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-3585,9
+3585,7
@@
void HandleTypeName(int newxpos, Key key)
xpos = newxpos;
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)
{
}
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);
DrawText(startx, starty, setup.player_name, font_nr);
-#if defined(TARGET_SDL2)
- SDL_StopTextInput();
-#endif
+ StopTextInput();
}
}
}
}