From: Holger Schemel Date: Mon, 9 Oct 2017 19:32:38 +0000 (+0200) Subject: fixed bug with cheat codes not working anymore after changing player name X-Git-Tag: 4.0.1.1~37 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=860524879132cd3d7f63f66d657aea060f25929c;p=rocksndiamonds.git fixed bug with cheat codes not working anymore after changing player name --- diff --git a/src/libgame/system.c b/src/libgame/system.c index a10016dc..4f27d60a 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -1583,9 +1583,9 @@ KeyMod GetKeyModStateFromEvents() void StartTextInput(int x, int y, int width, int height) { #if defined(TARGET_SDL2) +#if defined(HAS_SCREEN_KEYBOARD) SDL_StartTextInput(); -#if defined(HAS_SCREEN_KEYBOARD) if (y + height > SCREEN_KEYBOARD_POS(video.height)) { video.shifted_up_pos = y + height - SCREEN_KEYBOARD_POS(video.height); @@ -1599,9 +1599,9 @@ void StartTextInput(int x, int y, int width, int height) void StopTextInput() { #if defined(TARGET_SDL2) +#if defined(HAS_SCREEN_KEYBOARD) SDL_StopTextInput(); -#if defined(HAS_SCREEN_KEYBOARD) if (video.shifted_up) { video.shifted_up_pos = 0;