[Scummvm-git-logs] scummvm master -> d0b644f19f8030960cf485badd49b5f4bb97aa31
dreammaster
dreammaster at scummvm.org
Wed Feb 17 02:56:52 UTC 2021
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
4bfa171060 AGS: Add Heroine's Quest detection entry
d0b644f19f AGS: Implement vertically flipped sprite drawing
Commit: 4bfa17106030f236dc45fec7187f16c3589d83ea
https://github.com/scummvm/scummvm/commit/4bfa17106030f236dc45fec7187f16c3589d83ea
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-02-16T18:46:06-08:00
Commit Message:
AGS: Add Heroine's Quest detection entry
Changed paths:
engines/ags/detection_tables.h
diff --git a/engines/ags/detection_tables.h b/engines/ags/detection_tables.h
index 9cc0025f2d..42d1adcf61 100644
--- a/engines/ags/detection_tables.h
+++ b/engines/ags/detection_tables.h
@@ -2103,6 +2103,7 @@ const AGSGameDescription GAME_DESCRIPTIONS[] = {
ENGLISH_ENTRY("henkstroemlostincellar", "Henk_LIC.exe", "3128b9f90e2f954ba704414ae854d10b", 1391240),
ENGLISH_ENTRY("henman", "hen-man.exe", "615e73fc1874e92d60a1996c2330ea36", 19556067),
ENGLISH_ENTRY("heroinesquest", "heroine's quest.exe", "35b93e905a5aeba8fafd0e5b0f4cb9b6", 7014402), // Steam
+ ENGLISH_ENTRY("heroinesquest", "heroine's quest.exe", "0b19953a0a879b5027c98b0cdd8142f1", 6825340),
ENGLISH_ENTRY("hesgonehistorical", "His.exe", "465f972675db2da6040518221af5b0ba", 5768754),
ENGLISH_ENTRY("hhgtgtowelday", "TowelDay.exe", "18456f28d9bf843b087e80072c85beca", 5431338),
ENGLISH_ENTRY("hiddenplains", "eureka02.exe", "6afafd26476d17a5e2a8e41f690d3720", 384360829),
Commit: d0b644f19f8030960cf485badd49b5f4bb97aa31
https://github.com/scummvm/scummvm/commit/d0b644f19f8030960cf485badd49b5f4bb97aa31
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-02-16T18:56:36-08:00
Commit Message:
AGS: Implement vertically flipped sprite drawing
Changed paths:
engines/ags/lib/allegro/gfx.cpp
diff --git a/engines/ags/lib/allegro/gfx.cpp b/engines/ags/lib/allegro/gfx.cpp
index 05fdd096df..cc9993138c 100644
--- a/engines/ags/lib/allegro/gfx.cpp
+++ b/engines/ags/lib/allegro/gfx.cpp
@@ -376,12 +376,36 @@ void draw_sprite_h_flip(BITMAP *bmp, const BITMAP *sprite, int x, int y) {
bmpS.transBlitFrom(spriteS, Common::Point(x, y), (uint)-1, true);
}
+static void verticallyFlip(Graphics::ManagedSurface &dest, const Graphics::ManagedSurface &src) {
+ dest.create(src.w, src.h, src.format);
+
+ for (int y = 0; y < src.h; ++y) {
+ const byte *srcP = (const byte *)src.getBasePtr(0, src.h - y - 1);
+ byte *destP = (byte *)dest.getBasePtr(0, y);
+ Common::copy(srcP, srcP + src.pitch, destP);
+ }
+}
+
void draw_sprite_v_flip(BITMAP *bmp, const BITMAP *sprite, int x, int y) {
- error("TODO: draw_sprite_v_flip");
+ Graphics::ManagedSurface &bmpS = **bmp;
+ Graphics::ManagedSurface &spriteS = **sprite;
+ Graphics::ManagedSurface temp;
+
+ verticallyFlip(temp, spriteS);
+ add_palette_if_needed(spriteS);
+
+ bmpS.transBlitFrom(temp, Common::Point(x, y), TRANSPARENT_COLOR(spriteS));
}
void draw_sprite_vh_flip(BITMAP *bmp, const BITMAP *sprite, int x, int y) {
- error("TODO: draw_sprite_vh_flip");
+ Graphics::ManagedSurface &bmpS = **bmp;
+ Graphics::ManagedSurface &spriteS = **sprite;
+ Graphics::ManagedSurface temp;
+
+ verticallyFlip(temp, spriteS);
+ add_palette_if_needed(spriteS);
+
+ bmpS.transBlitFrom(temp, Common::Point(x, y), TRANSPARENT_COLOR(spriteS), true);
}
void rotate_sprite(BITMAP *bmp, const BITMAP *sprite, int x, int y, fixed angle) {
More information about the Scummvm-git-logs
mailing list