Skip to content

Commit c951503

Browse files
authored
Merge pull request #3465 from pygame-community/ankith26-fix-dst-pal
Fix dst palette in modify_hsl
2 parents b145d4d + d580376 commit c951503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/transform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2703,7 +2703,7 @@ modify_hsl(SDL_Surface *surf, PG_PixelFormat *fmt, SDL_Surface *dst,
27032703
Uint8 *srcp8 = (Uint8 *)surf->pixels;
27042704
Uint8 *dstp8 = (Uint8 *)dst->pixels;
27052705
SDL_Palette *surf_palette = PG_GetSurfacePalette(surf);
2706-
SDL_Palette *dst_palette = PG_GetSurfacePalette(surf);
2706+
SDL_Palette *dst_palette = PG_GetSurfacePalette(dst);
27072707

27082708
if (PG_FORMAT_BytesPerPixel(fmt) == 4 ||
27092709
PG_FORMAT_BytesPerPixel(fmt) == 3) {

0 commit comments

Comments
 (0)