forked from GSoC/sdl-2.30.3-kolibri
Fix wrong conditionals for proper cursor size check
This commit is contained in:
@@ -71,7 +71,7 @@ static SDL_Cursor *KOLIBRI_CreateCursor(SDL_Surface *surface, int hot_x, int hot
|
|||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
/* Size of cursor must be 32x32 */
|
/* 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");
|
SDL_SetError("Size of the cursor must be 32x32");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user