mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-22 20:25:38 +00:00
Fixed N3DS build
(cherry picked from commit 332213163c395bb73ac3969d0a66ee19be1d90ff)
This commit is contained in:
parent
53058af284
commit
55caed2011
|
@ -435,7 +435,6 @@ int SDL_VideoInit(const char *driver_name)
|
|||
SDL_bool init_keyboard = SDL_FALSE;
|
||||
SDL_bool init_mouse = SDL_FALSE;
|
||||
SDL_bool init_touch = SDL_FALSE;
|
||||
const char *hint;
|
||||
int i = 0;
|
||||
|
||||
/* Check to make sure we don't overwrite '_this' */
|
||||
|
@ -567,7 +566,8 @@ int SDL_VideoInit(const char *driver_name)
|
|||
/* In the initial state we don't want to pop up an on-screen keyboard,
|
||||
* but we do want to allow text input from other mechanisms.
|
||||
*/
|
||||
hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);
|
||||
{
|
||||
const char *hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);
|
||||
if (!hint) {
|
||||
SDL_SetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD, "0");
|
||||
}
|
||||
|
@ -575,6 +575,7 @@ int SDL_VideoInit(const char *driver_name)
|
|||
if (!hint) {
|
||||
SDL_SetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD, NULL);
|
||||
}
|
||||
}
|
||||
#endif /* !SDL_VIDEO_DRIVER_N3DS */
|
||||
|
||||
SDL_MousePostInit();
|
||||
|
|
Loading…
Reference in a new issue