aboutsummaryrefslogtreecommitdiff
path: root/engines/sky/screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sky/screen.cpp')
-rw-r--r--engines/sky/screen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sky/screen.cpp b/engines/sky/screen.cpp
index 071dab2585..eae0417d09 100644
--- a/engines/sky/screen.cpp
+++ b/engines/sky/screen.cpp
@@ -155,10 +155,12 @@ void Screen::setPalette(uint16 fileNum) {
}
void Screen::showScreen(uint16 fileNum) {
-
+ // This is only used for static images in the floppy and cd intro
if (_currentScreen)
free(_currentScreen);
_currentScreen = _skyDisk->loadFile(fileNum);
+ // make sure the last 8 lines are forced to black.
+ memset(_currentScreen + GAME_SCREEN_HEIGHT * GAME_SCREEN_WIDTH, 0, (FULL_SCREEN_HEIGHT - GAME_SCREEN_HEIGHT) * GAME_SCREEN_WIDTH);
if (_currentScreen)
showScreen(_currentScreen);