Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #2446: rotozoom keeps the colorkey flag. #2491

Merged
merged 16 commits into from
Oct 28, 2023
Prev Previous commit
Next Next commit
vendor in SurfaceHasRLE
  • Loading branch information
MyreMylar authored Oct 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4b856755b2755681d9861d6bb37499e2805a7266
21 changes: 19 additions & 2 deletions src_c/_pygame.h
Original file line number Diff line number Diff line change
@@ -106,8 +106,25 @@
#define PG_SurfaceHasRLE SDL_HasSurfaceRLE
MyreMylar marked this conversation as resolved.
Show resolved Hide resolved
#else
// vendored in until our lowest SDL version is 2.0.14
MyreMylar marked this conversation as resolved.
Show resolved Hide resolved
struct SDL_BlitMap
{
typedef struct {
int width;
int height;
Uint8 *s_pixels;
int s_pxskip;
int s_skip;
Uint8 *d_pixels;
int d_pxskip;
int d_skip;
SDL_PixelFormat *src;
SDL_PixelFormat *dst;
Uint8 src_blanket_alpha;
int src_has_colorkey;
Uint32 src_colorkey;
SDL_BlendMode src_blend;
SDL_BlendMode dst_blend;
} SDL_BlitInfo;
MyreMylar marked this conversation as resolved.
Show resolved Hide resolved

struct SDL_BlitMap {
SDL_Surface *dst;
int identity;
SDL_blit blit;