diff options
author | Eugene Sandulenko | 2019-12-11 12:04:27 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-11 12:04:27 +0100 |
commit | f37f24e8c00dd5b02fcf2d8e832d4299a949be7c (patch) | |
tree | 744b08b5cc65d95386794126bb9e750586869286 /engines/director | |
parent | 98b14a36ad225e3604b483a3d1c3c384f6a83be5 (diff) | |
download | scummvm-rg350-f37f24e8c00dd5b02fcf2d8e832d4299a949be7c.tar.gz scummvm-rg350-f37f24e8c00dd5b02fcf2d8e832d4299a949be7c.tar.bz2 scummvm-rg350-f37f24e8c00dd5b02fcf2d8e832d4299a949be7c.zip |
DIRECTOR: Added comments to screen update calls
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/frame.cpp | 16 | ||||
-rw-r--r-- | engines/director/graphics.cpp | 2 | ||||
-rw-r--r-- | engines/director/movie.cpp | 2 | ||||
-rw-r--r-- | engines/director/score.cpp | 2 |
4 files changed, 11 insertions, 11 deletions
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 } } |