aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2008-04-25 10:43:47 +0000
committerFilippos Karapetis2008-04-25 10:43:47 +0000
commit2172eee072d0819bea8cf4d1f35926948756a57e (patch)
tree295fce934b54a765cfd44ee9029acab737982222
parent9e0cd64629039684e28cd64f20575483e984681e (diff)
downloadscummvm-rg350-2172eee072d0819bea8cf4d1f35926948756a57e.tar.gz
scummvm-rg350-2172eee072d0819bea8cf4d1f35926948756a57e.tar.bz2
scummvm-rg350-2172eee072d0819bea8cf4d1f35926948756a57e.zip
Center videos to screen
svn-id: r31715
-rw-r--r--engines/made/pmvplayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/made/pmvplayer.cpp b/engines/made/pmvplayer.cpp
index 6faa7f6291..267b6ae8a6 100644
--- a/engines/made/pmvplayer.cpp
+++ b/engines/made/pmvplayer.cpp
@@ -198,7 +198,8 @@ void PmvPlayer::handleEvents() {
}
void PmvPlayer::updateScreen() {
- _vm->_system->copyRectToScreen((const byte*)_surface->pixels, _surface->pitch, 0, 0, _surface->w, _surface->h);
+ _vm->_system->copyRectToScreen((const byte*)_surface->pixels, _surface->pitch,
+ (320 - _surface->w) / 2, (200 - _surface->h) / 2, _surface->w, _surface->h);
_vm->_system->updateScreen();
}