aboutsummaryrefslogtreecommitdiff
path: root/engines/director/frame.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-25 18:05:05 +0100
committerEugene Sandulenko2019-12-25 18:05:33 +0100
commitdf3d87062e25b208d62564c27f2d3610abc7325b (patch)
treef11a31ec3c7563912f45b5f181391de8a43a85dc /engines/director/frame.cpp
parenta61bca207552329ee9e0e2287a0ed68b3871a5cf (diff)
downloadscummvm-rg350-df3d87062e25b208d62564c27f2d3610abc7325b.tar.gz
scummvm-rg350-df3d87062e25b208d62564c27f2d3610abc7325b.tar.bz2
scummvm-rg350-df3d87062e25b208d62564c27f2d3610abc7325b.zip
DIRECTOR: Temporarily revert the ink selection for QuickDraw shapes
Diffstat (limited to 'engines/director/frame.cpp')
-rw-r--r--engines/director/frame.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp
index f93a6610ce..e9f189fcf4 100644
--- a/engines/director/frame.cpp
+++ b/engines/director/frame.cpp
@@ -661,7 +661,7 @@ void Frame::renderShape(Graphics::ManagedSurface &surface, uint16 spriteId) {
if (sp->_shapeCast != NULL) {
sp->_foreColor = sp->_shapeCast->_fgCol;
sp->_backColor = sp->_shapeCast->_bgCol;
- sp->_ink = sp->_shapeCast->_ink;
+ //sp->_ink = sp->_shapeCast->_ink;
}
Common::Rect shapeRect = Common::Rect(sp->_startPoint.x,
@@ -674,7 +674,7 @@ void Frame::renderShape(Graphics::ManagedSurface &surface, uint16 spriteId) {
// No minus one on the pattern here! MacPlotData will do that for us!
//Graphics::MacPlotData pd(&tmpSurface, &_vm->getPatterns(), 1, 1, sp->_backColor);
- Graphics::MacPlotData pd(&tmpSurface, &_vm->getPatterns(), sp->_ink + 1, sp->_lineSize + 1, sp->_backColor);
+ Graphics::MacPlotData pd(&tmpSurface, &_vm->getPatterns(), sp->_castId, sp->_lineSize + 1, sp->_backColor);
Common::Rect fillRect(shapeRect.width(), shapeRect.height());
switch (sp->_spriteType) {
@@ -694,7 +694,8 @@ void Frame::renderShape(Graphics::ManagedSurface &surface, uint16 spriteId) {
Graphics::drawLine(fillRect.left, fillRect.bottom, fillRect.right, fillRect.top, sp->_foreColor, Graphics::macDrawPixel, &pd);
break;
case kOutlinedRectangleSprite: // this is actually a mouse-over shape? I don't think it's a real button.
- Graphics::drawRect(fillRect, sp->_foreColor, Graphics::macDrawPixel, &pd);
+ //Graphics::drawRect(fillRect, sp->_foreColor, Graphics::macDrawPixel, &pd);
+ tmpSurface.fillRect(Common::Rect(shapeRect.width(), shapeRect.height()), (_vm->getCurrentScore()->_currentMouseDownSpriteId == spriteId ? 0 : 0xff));
break;
case kOutlinedRoundedRectangleSprite:
Graphics::drawRoundRect(fillRect, 4, sp->_foreColor, false, Graphics::macDrawPixel, &pd);