[Scummvm-git-logs] scummvm master -> 29309a40785c88510debb6f40d63d284755e5d88

sev- noreply at scummvm.org
Sat Jun 17 09:02:20 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:
29309a4078 DIRECTOR: Draw shadow for debug sprite/frame information


Commit: 29309a40785c88510debb6f40d63d284755e5d88
    https://github.com/scummvm/scummvm/commit/29309a40785c88510debb6f40d63d284755e5d88
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-06-17T11:01:54+02:00

Commit Message:
DIRECTOR: Draw shadow for debug sprite/frame information

Changed paths:
    engines/director/window.cpp


diff --git a/engines/director/window.cpp b/engines/director/window.cpp
index 6cdeb459e19..5caea873f8c 100644
--- a/engines/director/window.cpp
+++ b/engines/director/window.cpp
@@ -178,6 +178,7 @@ bool Window::render(bool forceRedraw, Graphics::ManagedSurface *blitTo) {
 		uint32 width = font->getStringWidth(msg);
 
 		blitTo->fillRect(Common::Rect(blitTo->w - 3 - width, 1, blitTo->w - 1, font->getFontHeight() + 1), _wm->_colorBlack);
+		font->drawString(blitTo, msg, blitTo->w - 1 - width, 3, width , _wm->_colorBlack);
 		font->drawString(blitTo, msg, blitTo->w - 2 - width, 2, width , _wm->_colorWhite);
 	}
 
@@ -189,6 +190,7 @@ bool Window::render(bool forceRedraw, Graphics::ManagedSurface *blitTo) {
 				blitTo->frameRect(bbox, g_director->_wm->_colorWhite);
 
 				const Graphics::Font *font = FontMan.getFontByUsage(Graphics::FontManager::kConsoleFont);
+				font->drawString(blitTo, Common::String::format("m: %d, ch: %d", channel->_sprite->_castId.member, i), bbox.left + 3, bbox.top + 3, 128, g_director->_wm->_colorBlack);
 				font->drawString(blitTo, Common::String::format("m: %d, ch: %d", channel->_sprite->_castId.member, i), bbox.left + 2, bbox.top + 2, 128, g_director->_wm->_colorWhite);
 			}
 		}
@@ -257,7 +259,7 @@ void Window::setModal(bool modal) {
 		_wm->setLockedWidget(this);
 		_isModal = true;
 	}
-	
+
 	setVisible(true); // Activate this window on top
 }
 




More information about the Scummvm-git-logs mailing list