[Scummvm-git-logs] scummvm master -> 8211a5fc256fb72a9fc6aee00c640e54423aca9d
bluegr
noreply at scummvm.org
Sun Mar 9 12:12:24 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8211a5fc25 AGS: fix DynamicSprite.Flip() to use CreateTransparentBitmap
Commit: 8211a5fc256fb72a9fc6aee00c640e54423aca9d
https://github.com/scummvm/scummvm/commit/8211a5fc256fb72a9fc6aee00c640e54423aca9d
Author: mausimus (73635663+mausimus at users.noreply.github.com)
Date: 2025-03-09T14:12:20+02:00
Commit Message:
AGS: fix DynamicSprite.Flip() to use CreateTransparentBitmap
Changed paths:
engines/ags/engine/ac/dynamic_sprite.cpp
diff --git a/engines/ags/engine/ac/dynamic_sprite.cpp b/engines/ags/engine/ac/dynamic_sprite.cpp
index 43cf7aa013f..804694d534e 100644
--- a/engines/ags/engine/ac/dynamic_sprite.cpp
+++ b/engines/ags/engine/ac/dynamic_sprite.cpp
@@ -123,7 +123,7 @@ void DynamicSprite_Flip(ScriptDynamicSprite *sds, int direction) {
// resize the sprite to the requested size
Bitmap *sprite = _GP(spriteset)[sds->slot];
- std::unique_ptr<Bitmap> new_pic(BitmapHelper::CreateBitmap(sprite->GetWidth(), sprite->GetHeight(), sprite->GetColorDepth()));
+ std::unique_ptr<Bitmap> new_pic(BitmapHelper::CreateTransparentBitmap(sprite->GetWidth(), sprite->GetHeight(), sprite->GetColorDepth()));
// AGS script FlipDirection corresponds to internal GraphicFlip
new_pic->FlipBlt(sprite, 0, 0, static_cast<GraphicFlip>(direction));
More information about the Scummvm-git-logs
mailing list