Skip to content

Commit

Permalink
SWORD25: Fix text rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Nov 17, 2015
1 parent 1ae67bf commit 4dc23ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/sword25/gfx/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 4dc23ea

Please sign in to comment.