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;
|
auto* ad = &adisplays;
|
||||||
open_screen(p);
|
open_screen(p);
|
||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
set_mouse_grab(true);
|
||||||
SDL_ShowCursor(SDL_DISABLE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void graphics_reset(bool forced)
|
void graphics_reset(bool forced)
|
||||||
|
|
|
@ -392,8 +392,7 @@ void amiberry_gui_init()
|
||||||
else
|
else
|
||||||
SDL_RenderSetLogicalSize(renderer, GUI_HEIGHT, GUI_WIDTH);
|
SDL_RenderSetLogicalSize(renderer, GUI_HEIGHT, GUI_WIDTH);
|
||||||
|
|
||||||
SDL_ShowCursor(SDL_ENABLE);
|
set_mouse_grab(false);
|
||||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// Create helpers for GUI framework
|
// Create helpers for GUI framework
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue