aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/menu.cpp
diff options
context:
space:
mode:
authormd52011-03-13 23:33:31 +0200
committermd52011-03-13 23:34:08 +0200
commitfd2c39591f03778be83b44ed3f7ab470f0011644 (patch)
treeec15fc49c77b8845d7af6880cee94802b9444978 /engines/sci/graphics/menu.cpp
parentd7c8ed0f5d783bbfccbb6e627689064b1149e2fd (diff)
downloadscummvm-rg350-fd2c39591f03778be83b44ed3f7ab470f0011644.tar.gz
scummvm-rg350-fd2c39591f03778be83b44ed3f7ab470f0011644.tar.bz2
scummvm-rg350-fd2c39591f03778be83b44ed3f7ab470f0011644.zip
SCI: Fixed the flashing icon bar in the Mac version of Castle of Dr. Brain
Thanks to waltervn for his work and help on this
Diffstat (limited to 'engines/sci/graphics/menu.cpp')
-rw-r--r--engines/sci/graphics/menu.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp
index b0d12038e8..50ba77e832 100644
--- a/engines/sci/graphics/menu.cpp
+++ b/engines/sci/graphics/menu.cpp
@@ -911,6 +911,13 @@ void GfxMenu::kernelDrawStatus(const char *text, int16 colorPen, int16 colorBack
_ports->moveTo(0, 1);
_text16->DrawStatus(text);
_paint16->bitsShow(_ports->_menuBarRect);
+ // Also draw the line under the status bar. Normally, this is never drawn,
+ // but we need it to be drawn because Dr. Brain 1 Mac draws over it when
+ // it displays the icon bar. SSCI used negative rectangles to erase the
+ // area after drawing the icon bar, but this is a much cleaner way of
+ // achieving the same effect.
+ _paint16->fillRect(_ports->_menuLine, 1, 0);
+ _paint16->bitsShow(_ports->_menuLine);
_ports->setPort(oldPort);
}