diff options
Diffstat (limited to 'engines/kyra/graphics/screen_lok.cpp')
-rw-r--r-- | engines/kyra/graphics/screen_lok.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/kyra/graphics/screen_lok.cpp b/engines/kyra/graphics/screen_lok.cpp index 114382b487..ea619a6271 100644 --- a/engines/kyra/graphics/screen_lok.cpp +++ b/engines/kyra/graphics/screen_lok.cpp @@ -70,6 +70,19 @@ bool Screen_LoK::init() { return true; } +void Screen_LoK::loadBitmap(const char *filename, int tempPage, int dstPage, Palette *pal, bool skip) { + const char *ext = filename + strlen(filename) - 3; + + Screen::loadBitmap(filename, tempPage, dstPage, pal, skip); + + if (_isAmiga) { + if (!scumm_stricmp(ext, "MSC")) + Screen::convertAmigaMsc(getPagePtr(dstPage)); + else + Screen::convertAmigaGfx(getPagePtr(dstPage), 320, 200); + } +} + void Screen_LoK::fadeSpecialPalette(int palIndex, int startIndex, int size, int fadeTime) { if (_vm->gameFlags().platform == Common::kPlatformAmiga) return; |