Fix wrong conditionals for proper cursor size check

This commit is contained in:
2025-03-23 18:02:51 +02:00
parent 180d1c444a
commit ff40403123

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