X Tutup
Skip to content

AGS: fix DynamicSprite.Flip() to use CreateTransparentBitmap#6472

Merged
bluegr merged 1 commit intoscummvm:masterfrom
mausimus:ags-sprite-flip
Mar 9, 2025
Merged

AGS: fix DynamicSprite.Flip() to use CreateTransparentBitmap#6472
bluegr merged 1 commit intoscummvm:masterfrom
mausimus:ags-sprite-flip

Conversation

@mausimus
Copy link
Contributor

@mausimus mausimus commented Mar 9, 2025

AGS: fix DynamicSprite.Flip() to use CreateTransparentBitmap

DynamicSprite.Flip() is using CreateBitmap instead of CreateTransparentBitmap meaning flipped sprites lose their transparency.

Looks like this creeped in during refactoring here (other methods are OK, just Flip):
3078b20#diff-4093ff4addff2a4251456a23d8da353c260c0dfd217919f3a0b0cfb31bae921bR126

Reference AGS code here:
https://github.com/adventuregamestudio/ags/blob/master/Engine/ac/dynamicsprite.cpp#L125

Test case are mirror reflections in The Crimson Diamond.

@bluegr
Copy link
Member

bluegr commented Mar 9, 2025

Nice catch, thanks for your work!

@bluegr bluegr merged commit 8211a5f into scummvm:master Mar 9, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup