diff options
author | Matthew Stewart | 2018-06-11 20:52:07 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | d0033df8ea3148160c0e96f7d33067ce843a9371 (patch) | |
tree | 2ef552a7b538c1d27189f6792f2834e4c2522e4f /engines/startrek/startrek.cpp | |
parent | a4b67dabf68dcbb24dabe07270519625357d4be3 (diff) | |
download | scummvm-rg350-d0033df8ea3148160c0e96f7d33067ce843a9371.tar.gz scummvm-rg350-d0033df8ea3148160c0e96f7d33067ce843a9371.tar.bz2 scummvm-rg350-d0033df8ea3148160c0e96f7d33067ce843a9371.zip |
STARTREK: Fix animations underneath textboxes
Diffstat (limited to 'engines/startrek/startrek.cpp')
-rw-r--r-- | engines/startrek/startrek.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/startrek/startrek.cpp b/engines/startrek/startrek.cpp index 82ac94e673..7b3f4284af 100644 --- a/engines/startrek/startrek.cpp +++ b/engines/startrek/startrek.cpp @@ -29,7 +29,10 @@ #include "common/events.h" #include "common/file.h" #include "common/macresman.h" + +#include "graphics/pixelformat.h" #include "graphics/surface.h" + #include "engines/util.h" #include "video/qt_decoder.h" @@ -104,7 +107,8 @@ Common::Error StarTrekEngine::run() { assert(_macResFork->hasDataFork() && _macResFork->hasResFork()); } - initGraphics(SCREEN_WIDTH, SCREEN_HEIGHT); + const ::Graphics::PixelFormat format = ::Graphics::PixelFormat::createFormatCLUT8(); + initGraphics(SCREEN_WIDTH, SCREEN_HEIGHT, &format); initializeEventsAndMouse(); _frameIndex = 0; |