diff options
author | Sven Hesse | 2011-01-17 09:48:42 +0000 |
---|---|---|
committer | Sven Hesse | 2011-01-17 09:48:42 +0000 |
commit | da65a3cbf39cf23e4b803bfe9b498d0c5e1c36ec (patch) | |
tree | b8c64d6051dc61ce1eda2d082e50b97d9327745d /engines | |
parent | 8a1e9c8256fe8021e32ceea5e76d095f50a4d490 (diff) | |
download | scummvm-rg350-da65a3cbf39cf23e4b803bfe9b498d0c5e1c36ec.tar.gz scummvm-rg350-da65a3cbf39cf23e4b803bfe9b498d0c5e1c36ec.tar.bz2 scummvm-rg350-da65a3cbf39cf23e4b803bfe9b498d0c5e1c36ec.zip |
GOB: Fix the flow rate gauge in Urban Runner
svn-id: r55275
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/videoplayer.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index 5bd7d08005..1c5f1c1a72 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -160,30 +160,32 @@ int VideoPlayer::openVideo(bool primary, const Common::String &file, Properties properties.sprite = -1; video->surface.reset(); video->decoder->setSurfaceMemory(); - video->decoder->setXY(0, 0); + properties.x = properties.y = 0; } else { video->surface = _vm->_draw->_spritesArray[properties.sprite]; video->decoder->setSurfaceMemory(video->surface->getData(), video->surface->getWidth(), video->surface->getHeight(), video->surface->getBPP()); if (!ownSurf || (ownSurf && screenSize)) { - if ((properties.x >= 0) || (properties.y >= 0)) - video->decoder->setXY((properties.x < 0) ? 0xFFFF : properties.x, - (properties.y < 0) ? 0xFFFF : properties.y); - else - video->decoder->setXY(); + if ((properties.x >= 0) || (properties.y >= 0)) { + properties.x = (properties.x < 0) ? 0xFFFF : properties.x; + properties.y = (properties.y < 0) ? 0xFFFF : properties.y; + } else + properties.x = properties.y = -1; } else - video->decoder->setXY(0, 0); + properties.x = properties.y = 0; } } else { properties.sprite = -1; video->surface.reset(); video->decoder->setSurfaceMemory(); - video->decoder->setXY(0, 0); + properties.x = properties.y = 0; } } + video->decoder->setXY(properties.x, properties.y); + if (primary) _needBlit = (properties.flags & kFlagUseBackSurfaceContent) && (properties.sprite == Draw::kFrontSurface); |