From 2172eee072d0819bea8cf4d1f35926948756a57e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 25 Apr 2008 10:43:47 +0000 Subject: Center videos to screen svn-id: r31715 --- engines/made/pmvplayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3