The mouse close function no longer closes the mouse device because that's already done by device_close_all() - fixes the emulator's instability on hard reset.

This commit is contained in:
OBattler
2017-12-14 02:42:40 +01:00
parent 8c38b94594
commit ed384101fd

View File

@@ -11,7 +11,7 @@
* TODO: Add the Genius bus- and serial mouse.
* Remove the '3-button' flag from mouse types.
*
* Version: @(#)mouse.c 1.0.17 2017/12/09
* Version: @(#)mouse.c 1.0.18 2017/12/14
*
* Authors: Miran Grca, <mgrca8@gmail.com>
* Fred N. van Kempen, <decwiz@yahoo.com>
@@ -99,9 +99,6 @@ mouse_close(void)
{
if (mouse_curr == NULL) return;
if (mouse_curr->close != NULL)
mouse_curr->close(mouse_priv);
mouse_curr = NULL;
mouse_priv = NULL;
mouse_nbut = 0;