[Scummvm-tracker] [ScummVM :: Bugs] #15549: SCUMM: MI2 Macintosh crashes in scrollEffect() if Mac GUI/Menus are disabled

ScummVM :: Bugs trac at scummvm.org
Tue Dec 3 11:26:13 UTC 2024


#15549: SCUMM: MI2 Macintosh crashes in scrollEffect() if Mac GUI/Menus are
disabled
-------------------------+------------------------------
Reporter:  eriktorbjorn  |       Owner:  (none)
    Type:  defect        |      Status:  new
Priority:  high          |   Component:  Engine: SCUMM
 Version:                |  Resolution:
Keywords:                |        Game:  Monkey Island 2
-------------------------+------------------------------
Comment (by eriktorbjorn):

 It may be as simple as this:

 {{{
 diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
 index 59431fe3d0a..b57759935ba 100644
 --- a/engines/scumm/gfx.cpp
 +++ b/engines/scumm/gfx.cpp
 @@ -4803,7 +4803,7 @@ void ScummEngine::scrollEffect(int dir) {
         byte *src;
         int m = _textSurfaceMultiplier;

 -       if (m == 1 && _game.platform == Common::kPlatformMacintosh)
 +       if (m == 1 && _game.platform == Common::kPlatformMacintosh &&
 _macScreen)
                 m = 2;

         int vsPitch = vs->pitch;
 }}}
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/15549#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list