From fd2c39591f03778be83b44ed3f7ab470f0011644 Mon Sep 17 00:00:00 2001 From: md5 Date: Sun, 13 Mar 2011 23:33:31 +0200 Subject: 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 --- engines/sci/graphics/menu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/sci/graphics/menu.cpp') 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); } -- cgit v1.2.3