aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-16 02:37:25 +0200
committerJohannes Schickel2012-06-16 02:39:00 +0200
commit808e41d807cd909d18dadc612bc77d14bae2a18e (patch)
tree07a00e94ae9d2bb61a4a833ae425fdadc9142063 /engines
parent5f65cf9679b7c01052bb4e7fe46a74a10f84665c (diff)
downloadscummvm-rg350-808e41d807cd909d18dadc612bc77d14bae2a18e.tar.gz
scummvm-rg350-808e41d807cd909d18dadc612bc77d14bae2a18e.tar.bz2
scummvm-rg350-808e41d807cd909d18dadc612bc77d14bae2a18e.zip
SWORD2: Get rid of casts on OSystem::copyRectToScreen calls.
Diffstat (limited to 'engines')
-rw-r--r--engines/sword2/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp
index 90ee7375ab..5e3f8929e9 100644
--- a/engines/sword2/animation.cpp
+++ b/engines/sword2/animation.cpp
@@ -332,7 +332,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()) {
@@ -401,7 +401,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();
}