Call set_mouse_grab() from the other areas as well
This commit is contained in:
parent
d525536654
commit
d3699d69b5
2 changed files with 2 additions and 4 deletions
|
@ -876,8 +876,7 @@ void update_display(struct uae_prefs* p)
|
|||
{
|
||||
auto* ad = &adisplays;
|
||||
open_screen(p);
|
||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
set_mouse_grab(true);
|
||||
}
|
||||
|
||||
void graphics_reset(bool forced)
|
||||
|
|
|
@ -392,8 +392,7 @@ void amiberry_gui_init()
|
|||
else
|
||||
SDL_RenderSetLogicalSize(renderer, GUI_HEIGHT, GUI_WIDTH);
|
||||
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||
set_mouse_grab(false);
|
||||
|
||||
//-------------------------------------------------
|
||||
// Create helpers for GUI framework
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue