[Scummvm-git-logs] scummvm master -> e5c1ef3fbb98221626a54ff53f0976f9bc976961
sev-
noreply at scummvm.org
Thu Feb 9 23:55:05 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:
e5c1ef3fbb DIRECTOR: Fix regression from 48740a2ad12
Commit: e5c1ef3fbb98221626a54ff53f0976f9bc976961
https://github.com/scummvm/scummvm/commit/e5c1ef3fbb98221626a54ff53f0976f9bc976961
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-02-10T00:53:38+01:00
Commit Message:
DIRECTOR: Fix regression from 48740a2ad12
The color values went inverted, but in several places they left
untouched.
In general, it is not a good idea to have this hardcoded, but at least
now we have this addressed.
Changed paths:
engines/director/castmember.cpp
graphics/macgui/macbutton.cpp
graphics/macgui/mactext.cpp
diff --git a/engines/director/castmember.cpp b/engines/director/castmember.cpp
index 8c4338c4be2..7737b635552 100644
--- a/engines/director/castmember.cpp
+++ b/engines/director/castmember.cpp
@@ -1124,7 +1124,7 @@ TextCastMember::TextCastMember(Cast *cast, uint16 castId, Common::SeekableReadSt
_maxHeight = _textHeight = 0;
_bgcolor = 0;
- _fgcolor = 0;
+ _fgcolor = 0xff;
_textFlags = 0;
_scroll = 0;
diff --git a/graphics/macgui/macbutton.cpp b/graphics/macgui/macbutton.cpp
index da770765404..ff68154e73c 100644
--- a/graphics/macgui/macbutton.cpp
+++ b/graphics/macgui/macbutton.cpp
@@ -145,14 +145,14 @@ bool MacButton::draw(bool forceRedraw) {
switch (_buttonType) {
case kCheckBox: {
Common::Rect c = Common::Rect(r.left, r.top + 2, r.left + 10, r.top + 2 + 10);
- Graphics::drawRect1(c, 0, _wm->getDrawPixel(), &pd);
+ Graphics::drawRect1(c, 0xff, _wm->getDrawPixel(), &pd);
break;
}
case kRound:
- Graphics::drawRoundRect1(r, 4, 0, false, _wm->getDrawPixel(), &pd);
+ Graphics::drawRoundRect1(r, 4, 0xff, false, _wm->getDrawPixel(), &pd);
break;
case kRadio:
- Graphics::drawEllipse(r.left, r.top + 2, r.left + 11, r.top + 13, 0, false, _wm->getDrawPixel(), &pd);
+ Graphics::drawEllipse(r.left, r.top + 2, r.left + 11, r.top + 13, 0xff, false, _wm->getDrawPixel(), &pd);
break;
}
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index 4f07c48edb3..df1425425b1 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -1380,7 +1380,7 @@ bool MacText::draw(bool forceRedraw) {
for (int bb = 0; bb < _border; bb++) {
Common::Rect borderRect(bb, bb, _composeSurface->w - bb, _composeSurface->h - bb);
- _composeSurface->frameRect(borderRect, 0);
+ _composeSurface->frameRect(borderRect, 0xff);
}
if (_selectedText.endY != -1)
More information about the Scummvm-git-logs
mailing list