mirror of
https://github.com/encounter/SDL.git
synced 2025-12-20 18:29:22 +00:00
Removed redundant mouse clean up on quit for some platforms.
SDL_MouseQuit() already frees cursors and sets fields to NULL.
This commit is contained in:
@@ -392,23 +392,5 @@ Wayland_FiniMouse(void)
|
||||
/* This effectively assumes that nobody else
|
||||
* touches SDL_Mouse which is effectively
|
||||
* a singleton */
|
||||
|
||||
SDL_Mouse *mouse = SDL_GetMouse();
|
||||
|
||||
/* Free the current cursor if not the same pointer as
|
||||
* the default cursor */
|
||||
if (mouse->def_cursor != mouse->cur_cursor)
|
||||
Wayland_FreeCursor (mouse->cur_cursor);
|
||||
|
||||
Wayland_FreeCursor (mouse->def_cursor);
|
||||
mouse->def_cursor = NULL;
|
||||
mouse->cur_cursor = NULL;
|
||||
|
||||
mouse->CreateCursor = NULL;
|
||||
mouse->CreateSystemCursor = NULL;
|
||||
mouse->ShowCursor = NULL;
|
||||
mouse->FreeCursor = NULL;
|
||||
mouse->WarpMouse = NULL;
|
||||
mouse->SetRelativeMouseMode = NULL;
|
||||
}
|
||||
#endif /* SDL_VIDEO_DRIVER_WAYLAND */
|
||||
|
||||
Reference in New Issue
Block a user