diff options
author | Johannes Schickel | 2006-05-28 12:19:45 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-05-28 12:19:45 +0000 |
commit | 1750be5b5a1dc8f89d786db143575e661bc3c11c (patch) | |
tree | 5c0bf705794b7fb9a0f68e5de63ca25852b1e2cf /engines/kyra/kyra.cpp | |
parent | d5c74ee633fcedf706f72e3398256d4a19efd834 (diff) | |
download | scummvm-rg350-1750be5b5a1dc8f89d786db143575e661bc3c11c.tar.gz scummvm-rg350-1750be5b5a1dc8f89d786db143575e661bc3c11c.tar.bz2 scummvm-rg350-1750be5b5a1dc8f89d786db143575e661bc3c11c.zip |
- makes Screen::getPagePtr private
- introduces Screen::getCPagePtr and Screen::getPageRect (which should ease the introduction of dirty rect handling)
- moves KyraEngine::loadBitmap to Screen
svn-id: r22716
Diffstat (limited to 'engines/kyra/kyra.cpp')
-rw-r--r-- | engines/kyra/kyra.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index 0c121bdffd..827d3f5d63 100644 --- a/engines/kyra/kyra.cpp +++ b/engines/kyra/kyra.cpp @@ -430,7 +430,7 @@ int KyraEngine_v2::go() { // Kyra2 goes here :) loadPalette("palette.col", _screen->_currentPalette); _screen->setScreenPalette(_screen->_currentPalette); - loadBitmap("_playfld.cps", 0, 0, 0); + _screen->loadBitmap("_playfld.cps", 0, 0, 0); _screen->updateScreen(); waitForEvent(); return 0; @@ -451,7 +451,7 @@ void KyraEngine::startup() { setCharactersPositions(i); _animator->setCharactersHeight(); resetBrandonPoisonFlags(); - _maskBuffer = _screen->getPagePtr(5); + _maskBuffer = _screen->getMaskBuffer(); _screen->_curPage = 0; // XXX for (int i = 0; i < 0x0C; ++i) { @@ -736,7 +736,7 @@ void KyraEngine::setupShapes123(const Shape *shapeTable, int endShape, int flags uint8 newImage = shapeTable[i-123].imageIndex; if (newImage != curImage && newImage != 0xFF) { assert(_characterImageTable); - loadBitmap(_characterImageTable[newImage], 8, 8, 0); + _screen->loadBitmap(_characterImageTable[newImage], 8, 8, 0); curImage = newImage; } _shapes[4+i] = _screen->encodeShape(shapeTable[i-123].x<<3, shapeTable[i-123].y, shapeTable[i-123].w<<3, shapeTable[i-123].h, shapeFlags); |