Skip to content

Commit 1bc573f

Browse files
committed
use SDL_HasColorKey
1 parent 24c8d30 commit 1bc573f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/alphablit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ SoftCachedBlitPyGame(SDL_Surface *src, SDL_Surface *dst, int blend_flags,
648648
/* unhandled cases */
649649
if (SDL_GetSurfaceBlendMode(src, &src_blend) != 0 ||
650650
(src_blend == SDL_BLENDMODE_NONE && src->format->Amask) ||
651-
SDL_GetColorKey(src, &colorkey) == 0) {
651+
SDL_HasColorKey(src)) {
652652
okay = 0;
653653
break;
654654
}

0 commit comments

Comments
 (0)