aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-31 12:59:50 +0200
committerEugene Sandulenko2019-09-03 17:17:30 +0200
commita7828397af799209591cf2b2c3bead0ecf42f376 (patch)
treef0f2729723f214606075f1296e749f445a3ea57d /engines
parentf3d0bca83a215e836cbac2fa8aae9371fe9c84ca (diff)
downloadscummvm-rg350-a7828397af799209591cf2b2c3bead0ecf42f376.tar.gz
scummvm-rg350-a7828397af799209591cf2b2c3bead0ecf42f376.tar.bz2
scummvm-rg350-a7828397af799209591cf2b2c3bead0ecf42f376.zip
HDB: Made rendering pipeline to match original
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/gfx.cpp5
-rw-r--r--engines/hdb/hdb.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 987a567e3c..cc43b06b54 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -254,6 +254,8 @@ void Gfx::updateVideo() {
if (!clip.isEmpty()) {
g_system->copyRectToScreen(g_hdb->_gfx->_globalSurface.getBasePtr(clip.left, clip.top), g_hdb->_gfx->_globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height());
}
+
+ g_system->updateScreen();
}
void Gfx::drawPointer() {
@@ -303,6 +305,9 @@ void Gfx::updateFade() {
if (!_fadeInfo.active && !_fadeInfo.stayFaded)
return;
+ debug(7, "updateFade: active: %d stayFaded: %d isBlack: %d speed: %d isFadeIn: %d curStep: %d", _fadeInfo.active,
+ _fadeInfo.stayFaded, _fadeInfo.isBlack, _fadeInfo.speed, _fadeInfo.isFadeIn, _fadeInfo.curStep);
+
Graphics::ManagedSurface fadeBuffer1, fadeBuffer2;
fadeBuffer1.create(g_hdb->_screenWidth, g_hdb->_screenHeight, g_hdb->_format);
fadeBuffer2.create(g_hdb->_screenWidth, g_hdb->_screenHeight, g_hdb->_format);
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 6e42ae025f..3d2bf3b3b2 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -803,7 +803,6 @@ void HDBGame::drawProgressBar() {
GameState temp = _gameState;
_gameState = GAME_LOADING;
paint();
- g_system->updateScreen();
_gameState = temp;
}
@@ -1048,7 +1047,6 @@ Common::Error HDBGame::run() {
paint();
- g_system->updateScreen();
if (g_hdb->getDebug()) {
g_hdb->_frames.push_back(g_system->getMillis());
while (g_hdb->_frames[0] < g_system->getMillis() - 1000)