fix sdl1 build (#367)

SDL_SetRelativeMouseMode applies only to sdl1
This commit is contained in:
Ted Roberth Nilsen 2018-10-17 18:41:59 +02:00 committed by Dimitris Panokostas
parent 12c550d8f7
commit 9dd9928a9b
2 changed files with 4 additions and 0 deletions

View file

@ -673,7 +673,9 @@ static void open_screen(struct uae_prefs* p)
void update_display(struct uae_prefs* p)
{
open_screen(p);
#ifdef USE_SDL1
SDL_SetRelativeMouseMode(SDL_TRUE);
#endif
SDL_ShowCursor(SDL_DISABLE);
framecnt = 1; // Don't draw frame before reset done
}

View file

@ -359,7 +359,9 @@ namespace sdl
check_error_sdl(gui_texture == nullptr, "Unable to create GUI texture");
SDL_ShowCursor(SDL_ENABLE);
#ifdef USE_SDL1
SDL_SetRelativeMouseMode(SDL_FALSE);
#endif
#endif
#ifdef ANDROIDSDL
// Enable Android multitouch