[Scummvm-git-logs] scummvm master -> af08c7c988e74afac49fe24447c1073635144789
mgerhardy
noreply at scummvm.org
Fri Jun 3 16:52:54 UTC 2022
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:
af08c7c988 TWINE: fixed missing shadow in behaviour string for classic release
Commit: af08c7c988e74afac49fe24447c1073635144789
https://github.com/scummvm/scummvm/commit/af08c7c988e74afac49fe24447c1073635144789
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2022-06-03T18:52:44+02:00
Commit Message:
TWINE: fixed missing shadow in behaviour string for classic release
Changed paths:
engines/twine/renderer/redraw.cpp
engines/twine/text.cpp
diff --git a/engines/twine/renderer/redraw.cpp b/engines/twine/renderer/redraw.cpp
index 154227d3bf3..0255f9dc8dd 100644
--- a/engines/twine/renderer/redraw.cpp
+++ b/engines/twine/renderer/redraw.cpp
@@ -665,7 +665,7 @@ void Redraw::renderText() {
const int height = _engine->_text->lineHeight;
const int y = _engine->height() - height - padding;
const int width = _engine->_text->getTextSize(_text.c_str());
- _engine->_text->drawText(x, y, _text.c_str());
+ _engine->_text->drawText(x, y, _text.c_str(), true);
_engine->copyBlockPhys(x, y, x + width, y + height);
const Common::Rect redraw(x, y, x + width, y + height);
addRedrawArea(redraw);
diff --git a/engines/twine/text.cpp b/engines/twine/text.cpp
index 0eb559045fe..b6a46e92c8e 100644
--- a/engines/twine/text.cpp
+++ b/engines/twine/text.cpp
@@ -244,7 +244,7 @@ void Text::drawText(int32 x, int32 y, const char *dialogue, bool shadow) {
const int32 dialTextSize = getCharWidth(currChar);
if (shadow) {
Common::Rect dirtyRect;
- drawCharacterShadow(x, y, currChar, COLOR_BLACK, dirtyRect);
+ drawCharacterShadow(x, y, currChar, COLOR_WHITE, dirtyRect);
} else {
drawCharacter(x, y, currChar); // draw the character on screen
}
More information about the Scummvm-git-logs
mailing list