[Scummvm-git-logs] scummvm master -> f380cebcaeee925c96068c94b44564137ad9d081
AndywinXp
noreply at scummvm.org
Sun Sep 24 19:25:54 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:
f380cebcae SWORD1: Use full refresh when displaying debug mouse and grid
Commit: f380cebcaeee925c96068c94b44564137ad9d081
https://github.com/scummvm/scummvm/commit/f380cebcaeee925c96068c94b44564137ad9d081
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-09-24T21:25:49+02:00
Commit Message:
SWORD1: Use full refresh when displaying debug mouse and grid
Changed paths:
engines/sword1/sword1.cpp
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp
index 688b3dee5db..c4f67d5aaca 100644
--- a/engines/sword1/sword1.cpp
+++ b/engines/sword1/sword1.cpp
@@ -317,10 +317,12 @@ void SwordEngine::checkKeys() {
// lock the mouse cursor within the window boundaries.
if (_keyPressed.hasFlags(Common::KBD_SHIFT))
_systemVars.displayDebugMouse = !_systemVars.displayDebugMouse;
+ _screen->fullRefresh(true);
break;
case Common::KEYCODE_g: // CTRL-G: Toggles walkgrid displaying
if (_keyPressed.hasFlags(Common::KBD_CTRL))
_systemVars.displayDebugGrid = !_systemVars.displayDebugGrid;
+ _screen->fullRefresh(true);
break;
case Common::KEYCODE_1: // Slow mode
{
@@ -894,6 +896,7 @@ void SwordEngine::showDebugInfo() {
if (_systemVars.displayDebugGrid) {
_logic->plotRouteGrid(playerCompact);
+ _screen->fullRefresh(true);
}
if (_systemVars.displayDebugMouse) {
@@ -910,6 +913,8 @@ void SwordEngine::showDebugInfo() {
_screen->plotPoint(playerCompact->o_xcoord - 128, playerCompact->o_ycoord - 130, 255);
_screen->plotPoint(playerCompact->o_xcoord - 128, playerCompact->o_ycoord - 126, 255);
_screen->plotPoint(playerCompact->o_xcoord - 126, playerCompact->o_ycoord - 128, 255);
+
+ _screen->fullRefresh(true);
}
}
More information about the Scummvm-git-logs
mailing list