From a7828397af799209591cf2b2c3bead0ecf42f376 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 31 Jul 2019 12:59:50 +0200 Subject: HDB: Made rendering pipeline to match original --- engines/hdb/gfx.cpp | 5 +++++ engines/hdb/hdb.cpp | 2 -- 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) -- cgit v1.2.3