diff options
author | Johannes Schickel | 2012-06-16 02:36:01 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-16 02:39:00 +0200 |
commit | ebb5cb7e4c6266e99382792f6c3d65868f5bc5e9 (patch) | |
tree | bd8dc07c8423045da696d9859042a0a5ad67f56a | |
parent | d214391431300e3be72dcf4690e996b0558ec6f2 (diff) | |
download | scummvm-rg350-ebb5cb7e4c6266e99382792f6c3d65868f5bc5e9.tar.gz scummvm-rg350-ebb5cb7e4c6266e99382792f6c3d65868f5bc5e9.tar.bz2 scummvm-rg350-ebb5cb7e4c6266e99382792f6c3d65868f5bc5e9.zip |
SAGA: Get rid of casts on OSystem::copyRectToScreen calls.
-rw-r--r-- | engines/saga/introproc_ihnm.cpp | 6 | ||||
-rw-r--r-- | engines/saga/introproc_saga2.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/saga/introproc_ihnm.cpp b/engines/saga/introproc_ihnm.cpp index 364c4cf306..6015e6757a 100644 --- a/engines/saga/introproc_ihnm.cpp +++ b/engines/saga/introproc_ihnm.cpp @@ -212,7 +212,7 @@ bool Scene::playTitle(int title, int time, int mode) { break; case 2: // display background - _vm->_system->copyRectToScreen((byte *)backBufferSurface->pixels, backBufferSurface->w, 0, 0, + _vm->_system->copyRectToScreen(backBufferSurface->pixels, backBufferSurface->w, 0, 0, backBufferSurface->w, backBufferSurface->h); phase++; startTime = curTime; @@ -247,7 +247,7 @@ bool Scene::playTitle(int title, int time, int mode) { frameTime = curTime; - _vm->_system->copyRectToScreen((byte *)backBufferSurface->pixels, backBufferSurface->w, 0, 0, + _vm->_system->copyRectToScreen(backBufferSurface->pixels, backBufferSurface->w, 0, 0, backBufferSurface->w, backBufferSurface->h); } @@ -274,7 +274,7 @@ bool Scene::playTitle(int title, int time, int mode) { _vm->_anim->endVideo(); memset((byte *)backBufferSurface->pixels, 0, backBufferSurface->w * backBufferSurface->h); - _vm->_system->copyRectToScreen((byte *)backBufferSurface->pixels, backBufferSurface->w, 0, 0, + _vm->_system->copyRectToScreen(backBufferSurface->pixels, backBufferSurface->w, 0, 0, backBufferSurface->w, backBufferSurface->h); return interrupted; diff --git a/engines/saga/introproc_saga2.cpp b/engines/saga/introproc_saga2.cpp index bdf8936a55..b6470370af 100644 --- a/engines/saga/introproc_saga2.cpp +++ b/engines/saga/introproc_saga2.cpp @@ -105,7 +105,7 @@ void Scene::playMovie(const char *filename) { if (smkDecoder->needsUpdate()) { const Graphics::Surface *frame = smkDecoder->decodeNextFrame(); if (frame) { - _vm->_system->copyRectToScreen((byte *)frame->pixels, frame->pitch, x, y, frame->w, frame->h); + _vm->_system->copyRectToScreen(frame->pixels, frame->pitch, x, y, frame->w, frame->h); if (smkDecoder->hasDirtyPalette()) smkDecoder->setSystemPalette(); |