Skip to content

Commit

Permalink
SCI: Fix Macintosh kDrawPic mirror flag handling
Browse files Browse the repository at this point in the history
Fixes the KQ6 Mac peppermint cave room
  • Loading branch information
sluicebox committed Aug 14, 2019
1 parent afd3607 commit aea7da4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions engines/sci/engine/kgraphics.cpp
Expand Up @@ -563,8 +563,13 @@ reg_t kDrawPic(EngineState *s, int argc, reg_t *argv) {
if (flags & K_DRAWPIC_FLAGS_ANIMATIONBLACKOUT) if (flags & K_DRAWPIC_FLAGS_ANIMATIONBLACKOUT)
animationBlackoutFlag = true; animationBlackoutFlag = true;
animationNr = flags & 0xFF; animationNr = flags & 0xFF;
if (flags & K_DRAWPIC_FLAGS_MIRRORED) // Mac interpreters ignored the mirrored flag and didn't mirror pics.
mirroredFlag = true; // KQ6 PC room 390 drew pic 390 mirrored so Mac added pic 395, which
// is a mirror of 390, but the script continued to pass this flag.
if (g_sci->getPlatform() != Common::kPlatformMacintosh) {
if (flags & K_DRAWPIC_FLAGS_MIRRORED)
mirroredFlag = true;
}
} }
if (argc >= 3) { if (argc >= 3) {
if (!argv[2].isNull()) if (!argv[2].isNull())
Expand Down

0 comments on commit aea7da4

Please sign in to comment.