[Scummvm-git-logs] scummvm master -> e4098f44ce521f9388a24520416a36e1e09692ba
neuromancer
noreply at scummvm.org
Sun Nov 26 17:50:07 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e4098f44ce FREESCAPE: clear buffer before each frame
Commit: e4098f44ce521f9388a24520416a36e1e09692ba
https://github.com/scummvm/scummvm/commit/e4098f44ce521f9388a24520416a36e1e09692ba
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-11-26T18:35:26+01:00
Commit Message:
FREESCAPE: clear buffer before each frame
Changed paths:
engines/freescape/freescape.cpp
engines/freescape/ui.cpp
diff --git a/engines/freescape/freescape.cpp b/engines/freescape/freescape.cpp
index 00bd58be65a..863918b5517 100644
--- a/engines/freescape/freescape.cpp
+++ b/engines/freescape/freescape.cpp
@@ -285,6 +285,7 @@ void FreescapeEngine::takeDamageFromSensor() {
}
void FreescapeEngine::drawBackground() {
+ _gfx->clear(0, 0, 0, true);
_gfx->setViewport(_fullscreenViewArea);
_gfx->drawBackground(_currentArea->_usualBackgroundColor);
_gfx->setViewport(_viewArea);
diff --git a/engines/freescape/ui.cpp b/engines/freescape/ui.cpp
index 78cc38b5c01..0f7909a37e7 100644
--- a/engines/freescape/ui.cpp
+++ b/engines/freescape/ui.cpp
@@ -60,7 +60,7 @@ void FreescapeEngine::titleScreen() {
break;
}
}
-
+ _gfx->clear(0, 0, 0, true);
drawTitle();
_gfx->flipBuffer();
g_system->updateScreen();
@@ -227,6 +227,7 @@ void FreescapeEngine::drawFullscreenMessageAndWait(Common::String message) {
break;
}
}
+ _gfx->clear(0, 0, 0, true);
drawBorder();
if (_currentArea)
drawUI();
More information about the Scummvm-git-logs
mailing list