diff options
author | Matthew Hoops | 2011-02-17 22:24:39 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-02-18 15:58:23 -0500 |
commit | 7b5792d6d2c605eded73118a8f73ceb2c29627e1 (patch) | |
tree | 685ee0b76da78e447b0871c191a206b554ee283b /engines/sci/graphics/ports.cpp | |
parent | 84e632cc9d62e41bd7d87530c1e5f0e0212713d2 (diff) | |
download | scummvm-rg350-7b5792d6d2c605eded73118a8f73ceb2c29627e1.tar.gz scummvm-rg350-7b5792d6d2c605eded73118a8f73ceb2c29627e1.tar.bz2 scummvm-rg350-7b5792d6d2c605eded73118a8f73ceb2c29627e1.zip |
SCI: Fix window height for some Mac SCI1/1.1 games
Some games have removed the menu bar from the screen. This also fixes King's Quest V's icon bar.
Diffstat (limited to 'engines/sci/graphics/ports.cpp')
-rw-r--r-- | engines/sci/graphics/ports.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp index 87f0c3d6a2..57c76126c0 100644 --- a/engines/sci/graphics/ports.cpp +++ b/engines/sci/graphics/ports.cpp @@ -106,7 +106,10 @@ void GfxPorts::init(bool usesOldGfxFunctions, GfxPaint16 *paint16, GfxText16 *te offTop = 26; break; default: - offTop = 10; + // For Mac games running with a height of 190, we do not have a menu bar + // so the top offset should be 0. + if (_screen->getHeight() == 190) + offTop = 0; break; } @@ -575,10 +578,6 @@ void GfxPorts::priorityBandsInit(int16 bandCount, int16 top, int16 bottom) { int16 y; int32 bandSize; - // This code is for 320x200 games only - if (_screen->getHeight() != 200) - return; - if (bandCount != -1) _priorityBandCount = bandCount; |