diff options
author | Johannes Schickel | 2013-08-03 02:42:56 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:52 +0200 |
commit | 2977ff8ba09d1b1885abb92ccbfe97f89e634ae5 (patch) | |
tree | 2545d66f671699d3631914aeedd2a547b7471c4a /engines/tinsel | |
parent | 4ddace8a7a5afd11918fa9c6cc0e9f1e02a5d1bd (diff) | |
download | scummvm-rg350-2977ff8ba09d1b1885abb92ccbfe97f89e634ae5.tar.gz scummvm-rg350-2977ff8ba09d1b1885abb92ccbfe97f89e634ae5.tar.bz2 scummvm-rg350-2977ff8ba09d1b1885abb92ccbfe97f89e634ae5.zip |
TINSEL: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/tinsel')
-rw-r--r-- | engines/tinsel/bmv.cpp | 2 | ||||
-rw-r--r-- | engines/tinsel/graphics.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/tinsel/bmv.cpp b/engines/tinsel/bmv.cpp index 106e1542d5..fa66b7ad8e 100644 --- a/engines/tinsel/bmv.cpp +++ b/engines/tinsel/bmv.cpp @@ -1031,7 +1031,7 @@ void BMVPlayer::CopyMovieToScreen() { // The movie surface is slightly less high than the output screen (429 rows versus 432). // Because of this, there's some extra line clearing above and below the displayed area int yStart = (SCREEN_HEIGHT - SCREEN_HIGH) / 2; - memset(_vm->screen().getBasePtr(0, 0), 0, yStart * SCREEN_WIDTH); + memset(_vm->screen().getPixels(), 0, yStart * SCREEN_WIDTH); memcpy(_vm->screen().getBasePtr(0, yStart), ScreenBeg, SCREEN_WIDTH * SCREEN_HIGH); memset(_vm->screen().getBasePtr(0, yStart + SCREEN_HIGH), 0, (SCREEN_HEIGHT - SCREEN_HIGH - yStart) * SCREEN_WIDTH); diff --git a/engines/tinsel/graphics.cpp b/engines/tinsel/graphics.cpp index 5dae984def..c4f341f6fe 100644 --- a/engines/tinsel/graphics.cpp +++ b/engines/tinsel/graphics.cpp @@ -798,7 +798,7 @@ static void PackedWrtNonZero(DRAWOBJECT *pObj, uint8 *srcP, uint8 *destP, */ void ClearScreen() { byte blackColorIndex = (!TinselV1Mac) ? 0 : 255; - void *pDest = _vm->screen().getBasePtr(0, 0); + void *pDest = _vm->screen().getPixels(); memset(pDest, blackColorIndex, SCREEN_WIDTH * SCREEN_HEIGHT); g_system->fillScreen(blackColorIndex); g_system->updateScreen(); |