aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/movie.cpp
diff options
context:
space:
mode:
authorSylvain Dupont2011-01-21 22:04:41 +0000
committerSylvain Dupont2011-01-21 22:04:41 +0000
commit5469aa1687180f9c236df9f780731c6f75afc4e6 (patch)
tree29309d0563f89134a82fc90a12d9274a097f1f91 /engines/toon/movie.cpp
parentf7f453a92595b7e071480d107fe9cdd1ab964ccc (diff)
downloadscummvm-rg350-5469aa1687180f9c236df9f780731c6f75afc4e6.tar.gz
scummvm-rg350-5469aa1687180f9c236df9f780731c6f75afc4e6.tar.bz2
scummvm-rg350-5469aa1687180f9c236df9f780731c6f75afc4e6.zip
TOON: Fix double declaration warning
Thanks to clone2727 ;) svn-id: r55396
Diffstat (limited to 'engines/toon/movie.cpp')
-rw-r--r--engines/toon/movie.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/toon/movie.cpp b/engines/toon/movie.cpp
index 8607f807fb..29d45652e4 100644
--- a/engines/toon/movie.cpp
+++ b/engines/toon/movie.cpp
@@ -96,8 +96,6 @@ void Movie::play(Common::String video, int32 flags) {
bool Movie::playVideo() {
debugC(1, kDebugMovie, "playVideo()");
- int32 x = 0;
- int32 y = 0;
while (!_vm->shouldQuit() && !_decoder->endOfVideo()) {
if (_decoder->needsUpdate()) {
const Graphics::Surface *frame = _decoder->decodeNextFrame();
@@ -111,7 +109,7 @@ bool Movie::playVideo() {
}
_vm->getSystem()->unlockScreen();
} else {
- _vm->getSystem()->copyRectToScreen((byte *)frame->pixels, frame->pitch, x, y, frame->w, frame->h);
+ _vm->getSystem()->copyRectToScreen((byte *)frame->pixels, frame->pitch, 0, 0, frame->w, frame->h);
}
}
_decoder->setSystemPalette();