shithub: ft²

Download patch

ref: 01d639ec25889d7131a6d37f49c7cbbd2e0e5853
parent: 84e02b8c87fcbf93e0404a691365d567c1e7808c
author: Olav Sørensen <olav.sorensen@live.no>
date: Mon Dec 13 10:08:10 EST 2021

Fix bug in ft2_mouse.c

--- a/src/ft2_mouse.c
+++ b/src/ft2_mouse.c
@@ -78,6 +78,7 @@
 		{
 			freeMouseCursors();
 			config.specialFlags2 &= ~HARDWARE_MOUSE; // enable software mouse
+			SDL_ShowCursor(SDL_FALSE);
 			return false;
 		}
 
@@ -148,6 +149,7 @@
 			SDL_FreeSurface(surface);
 			freeMouseCursors();
 			config.specialFlags2 &= ~HARDWARE_MOUSE; // enable software mouse
+			SDL_ShowCursor(SDL_FALSE);
 			return false;
 		}
 
@@ -159,6 +161,12 @@
 		     if (mouse.mode == MOUSE_MODE_NORMAL) setSystemCursor(cursors[0]);
 		else if (mouse.mode == MOUSE_MODE_DELETE) setSystemCursor(cursors[1]);
 		else if (mouse.mode == MOUSE_MODE_RENAME) setSystemCursor(cursors[2]);
+
+		SDL_ShowCursor(SDL_TRUE);
+	}
+	else
+	{
+		SDL_ShowCursor(SDL_FALSE);
 	}
 
 	return true;