diff options
author | athrxx | 2019-01-29 18:50:20 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:17 +0100 |
commit | bc66a1ee82b2aa1466fcfef78416983282a9efd8 (patch) | |
tree | f3611d1c74caf06500a6e9431a7d025553e67438 /engines/kyra | |
parent | 09c49120344ac5f48c9e651bfa2c1f9e8e5e2e1e (diff) | |
download | scummvm-rg350-bc66a1ee82b2aa1466fcfef78416983282a9efd8.tar.gz scummvm-rg350-bc66a1ee82b2aa1466fcfef78416983282a9efd8.tar.bz2 scummvm-rg350-bc66a1ee82b2aa1466fcfef78416983282a9efd8.zip |
KYRA: - minor cleanup
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/graphics/screen.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/graphics/screen.cpp b/engines/kyra/graphics/screen.cpp index a07e437d5f..4ceb627ba7 100644 --- a/engines/kyra/graphics/screen.cpp +++ b/engines/kyra/graphics/screen.cpp @@ -51,9 +51,7 @@ Screen::Screen(KyraEngine_v1 *vm, OSystem *system, const ScreenDim *dimTable, co memset(_fonts, 0, sizeof(_fonts)); memset(_pagePtrs, 0, sizeof(_pagePtrs)); - // In VGA mode the odd and even page pointers point to the same buffers. - for (int i = 0; i < SCREEN_PAGE_NUM; i++) - _pageMapping[i] = i & ~1; + memset(_pageMapping, 0, sizeof(_pageMapping)); _renderMode = Common::kRenderDefault; _sjisMixedFontMode = false; @@ -121,6 +119,9 @@ bool Screen::init() { _renderMode = Common::parseRenderMode(ConfMan.get("render_mode")); } + // In VGA mode the odd and even page pointers point to the same buffers. + for (int i = 0; i < SCREEN_PAGE_NUM; i++) + _pageMapping[i] = i & ~1; // CGA and EGA modes use additional pages to do the CGA/EGA specific graphics conversions. if (_vm->game() == GI_EOB1 && (_renderMode == Common::kRenderCGA || _renderMode == Common::kRenderEGA)) { for (int i = 0; i < 8; i++) |