From d4f1d41275d687d800e8cffb96643c58d0e6e9e8 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 4 Aug 2019 22:49:54 +0200 Subject: HDB: Fix fade rendering. No artifacts, yay! --- engines/hdb/gfx.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/hdb') diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 4e9d3f967a..55c69f469d 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -359,6 +359,7 @@ void Gfx::updateFade() { } _globalSurface.blitFrom(_fadeBuffer1); + g_system->copyRectToScreen(_globalSurface.getBasePtr(0, 0), _globalSurface.pitch, 0, 0, _globalSurface.w, _globalSurface.h); // step the fading values to the next one and // see if we're done yet @@ -389,8 +390,6 @@ void Gfx::updateFade() { return; } - g_system->copyRectToScreen(_globalSurface.getBasePtr(0, 0), _globalSurface.pitch, 0, 0, _globalSurface.w, _globalSurface.h); - g_system->updateScreen(); if (g_hdb->getDebug()) { g_hdb->_frames.push_back(g_system->getMillis()); -- cgit v1.2.3