From ff4040312338457f3d734e9a30aa205e3f2712bb Mon Sep 17 00:00:00 2001 From: Burer Date: Sun, 23 Mar 2025 18:02:51 +0200 Subject: [PATCH] Fix wrong conditionals for proper cursor size check --- src/video/kolibri/SDL_kolibrimouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/kolibri/SDL_kolibrimouse.c b/src/video/kolibri/SDL_kolibrimouse.c index 94a0911..72ec355 100644 --- a/src/video/kolibri/SDL_kolibrimouse.c +++ b/src/video/kolibri/SDL_kolibrimouse.c @@ -71,7 +71,7 @@ static SDL_Cursor *KOLIBRI_CreateCursor(SDL_Surface *surface, int hot_x, int hot int i, j; /* Size of cursor must be 32x32 */ - if (surface->w == 32 || surface->h == 32) { + if (surface->w != 32 || surface->h != 32) { SDL_SetError("Size of the cursor must be 32x32"); return NULL; }