aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2015-11-17 23:17:20 +0100
committerEugene Sandulenko2015-11-17 23:17:20 +0100
commit4dc23ea2893ad60c683e12a34c4667a5e14f5ccf (patch)
tree03074a5b550ef520eb4feb68180f5a2f453be08d
parent1ae67bf2a9abf4f2405a3d16a3b8e2d4164d4c81 (diff)
downloadscummvm-rg350-4dc23ea2893ad60c683e12a34c4667a5e14f5ccf.tar.gz
scummvm-rg350-4dc23ea2893ad60c683e12a34c4667a5e14f5ccf.tar.bz2
scummvm-rg350-4dc23ea2893ad60c683e12a34c4667a5e14f5ccf.zip
SWORD25: Fix text rendering
-rw-r--r--engines/sword25/gfx/text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/gfx/text.cpp b/engines/sword25/gfx/text.cpp
index 904435fcb0..54eb02f082 100644
--- a/engines/sword25/gfx/text.cpp
+++ b/engines/sword25/gfx/text.cpp
@@ -99,7 +99,7 @@ void Text::setText(const Common::String &text) {
}
void Text::setColor(uint32 modulationColor) {
- uint32 newModulationColor = (modulationColor & 0xffffff00) | (_modulationColor & 0x000000ff);
+ uint32 newModulationColor = (modulationColor & 0x00ffffff) | (_modulationColor & 0xff000000);
if (newModulationColor != _modulationColor) {
_modulationColor = newModulationColor;
forceRefresh();
@@ -108,7 +108,7 @@ void Text::setColor(uint32 modulationColor) {
void Text::setAlpha(int alpha) {
assert(alpha >= 0 && alpha < 256);
- uint32 newModulationColor = (_modulationColor & 0xffffff00) | alpha;
+ uint32 newModulationColor = (_modulationColor & 0xffffff) | (alpha << 24);
if (newModulationColor != _modulationColor) {
_modulationColor = newModulationColor;
forceRefresh();