Fix the mouse cursor shown when entering to submenus

This commit is contained in:
Martín Capello 2021-03-31 17:59:02 -03:00 committed by David Capello
parent fdbb3aec59
commit 079f7b6537

View File

@ -248,10 +248,11 @@ UISystem::~UISystem()
void _internal_set_mouse_display(Display* display)
{
CursorType cursor = get_mouse_cursor();
mouse_display = display;
if (display)
set_mouse_cursor(cursor); // Restore mouse cursor
if (display != mouse_display) {
mouse_display = display;
if (mouse_display)
update_mouse_cursor();
}
}
void set_multiple_displays(bool multi)