From f37f24e8c00dd5b02fcf2d8e832d4299a949be7c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 11 Dec 2019 12:04:27 +0100 Subject: DIRECTOR: Added comments to screen update calls --- engines/director/frame.cpp | 16 ++++++++-------- engines/director/graphics.cpp | 2 +- engines/director/movie.cpp | 2 +- engines/director/score.cpp | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'engines/director') diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index bf805dca19..a68fca4482 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -450,7 +450,7 @@ void Frame::playTransition(Score *score) { g_system->delayMillis(stepDuration); processQuitEvent(); - g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, 0, r.width(), r.height()); + g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, 0, r.width(), r.height()); // transition g_system->updateScreen(); } } @@ -466,7 +466,7 @@ void Frame::playTransition(Score *score) { g_system->delayMillis(stepDuration); processQuitEvent(); - g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, score->_movieRect.height() - stepSize * i, r.width(), r.height()); + g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, score->_movieRect.height() - stepSize * i, r.width(), r.height()); // transition g_system->updateScreen(); } } @@ -481,7 +481,7 @@ void Frame::playTransition(Score *score) { g_system->delayMillis(stepDuration); processQuitEvent(); - g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, 0, r.width(), r.height()); + g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, 0, r.width(), r.height()); // transition g_system->updateScreen(); } } @@ -496,7 +496,7 @@ void Frame::playTransition(Score *score) { g_system->delayMillis(stepDuration); processQuitEvent(); - g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, score->_movieRect.width() - stepSize * i, 0, r.width(), r.height()); + g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, score->_movieRect.width() - stepSize * i, 0, r.width(), r.height()); // transition g_system->updateScreen(); } } @@ -512,7 +512,7 @@ void Frame::playTransition(Score *score) { g_system->delayMillis(stepDuration); processQuitEvent(); - g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, score->_movieRect.width() - stepSize * i, score->_movieRect.height() - stepSize * i, r.width(), r.height()); + g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, score->_movieRect.width() - stepSize * i, score->_movieRect.height() - stepSize * i, r.width(), r.height()); // transition g_system->updateScreen(); } } @@ -528,7 +528,7 @@ void Frame::playTransition(Score *score) { g_system->delayMillis(stepDuration); processQuitEvent(); - g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, score->_movieRect.height() - stepSize * i, r.width(), r.height()); + g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, score->_movieRect.height() - stepSize * i, r.width(), r.height()); // transition g_system->updateScreen(); } } @@ -544,7 +544,7 @@ void Frame::playTransition(Score *score) { g_system->delayMillis(stepDuration); processQuitEvent(); - g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, score->_movieRect.width() - stepSize * i, 0, r.width(), r.height()); + g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, score->_movieRect.width() - stepSize * i, 0, r.width(), r.height()); // transition g_system->updateScreen(); } } @@ -560,7 +560,7 @@ void Frame::playTransition(Score *score) { g_system->delayMillis(stepDuration); processQuitEvent(); - g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, 0, r.width(), r.height()); + g_system->copyRectToScreen(score->_surface->getPixels(), score->_surface->pitch, 0, 0, r.width(), r.height()); // transition g_system->updateScreen(); } } diff --git a/engines/director/graphics.cpp b/engines/director/graphics.cpp index 3e473131eb..9745d9fe29 100644 --- a/engines/director/graphics.cpp +++ b/engines/director/graphics.cpp @@ -267,7 +267,7 @@ void DirectorEngine::testFontScaling() { x += width + 1; } - g_system->copyRectToScreen(surface.getPixels(), surface.pitch, 0, 0, w, h); + g_system->copyRectToScreen(surface.getPixels(), surface.pitch, 0, 0, w, h); // testing fonts Common::Event event; diff --git a/engines/director/movie.cpp b/engines/director/movie.cpp index 561ab06145..9b1679f289 100644 --- a/engines/director/movie.cpp +++ b/engines/director/movie.cpp @@ -48,7 +48,7 @@ void Movie::play(Common::Point dest) { while (!_currentVideo->endOfVideo()) { if (_currentVideo->needsUpdate()) { const Graphics::Surface *frame = _currentVideo->decodeNextFrame(); - g_system->copyRectToScreen(frame->getPixels(), frame->pitch, dest.x, dest.y, width, height); + g_system->copyRectToScreen(frame->getPixels(), frame->pitch, dest.x, dest.y, width, height); // video playback g_system->updateScreen(); } g_system->delayMillis(10); diff --git a/engines/director/score.cpp b/engines/director/score.cpp index ae2b19d398..54a78cc6a3 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -1444,7 +1444,7 @@ void Score::renderZoomBox(bool redraw) { box->nextTime = box->startTime + 1000 * box->step * box->delay / 60; if (redraw) { - g_system->copyRectToScreen(_surface->getPixels(), _surface->pitch, 0, 0, _surface->getBounds().width(), _surface->getBounds().height()); + g_system->copyRectToScreen(_surface->getPixels(), _surface->pitch, 0, 0, _surface->getBounds().width(), _surface->getBounds().height()); // zoomBox } } -- cgit v1.2.3