diff options
author | Johannes Schickel | 2012-06-16 02:36:47 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-16 02:39:00 +0200 |
commit | d8aff72402a808082e1000851b0e11dbd5f57786 (patch) | |
tree | d3914cc938fe356f13de85bacd76421ca4baabb5 /engines | |
parent | 64790aabc89ff128b7e3938d311a362619c4dd47 (diff) | |
download | scummvm-rg350-d8aff72402a808082e1000851b0e11dbd5f57786.tar.gz scummvm-rg350-d8aff72402a808082e1000851b0e11dbd5f57786.tar.bz2 scummvm-rg350-d8aff72402a808082e1000851b0e11dbd5f57786.zip |
SWORD1: Get rid of casts on OSystem::copyRectToScreen calls.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword1/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp index a70ca960ba..ddafd964eb 100644 --- a/engines/sword1/animation.cpp +++ b/engines/sword1/animation.cpp @@ -316,7 +316,7 @@ bool MoviePlayer::playVideo() { if (_decoderType == kVideoDecoderPSX) drawFramePSX(frame); else - _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 (_decoder->hasDirtyPalette()) { @@ -501,7 +501,7 @@ void MoviePlayer::drawFramePSX(const Graphics::Surface *frame) { uint16 x = (g_system->getWidth() - scaledFrame.w) / 2; uint16 y = (g_system->getHeight() - scaledFrame.h) / 2; - _vm->_system->copyRectToScreen((byte *)scaledFrame.pixels, scaledFrame.pitch, x, y, scaledFrame.w, scaledFrame.h); + _vm->_system->copyRectToScreen(scaledFrame.pixels, scaledFrame.pitch, x, y, scaledFrame.w, scaledFrame.h); scaledFrame.free(); } |