Fix wrong conditionals for proper cursor size check #1

Merged
mxlgv merged 1 commits from cursor-fix into master 2025-03-23 18:43:51 +01:00

View File

@@ -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;
}