DIRECTOR: Fix drawing outlined QD shapes, patterns were missing

This commit is contained in:
Eugene Sandulenko 2022-06-15 16:58:37 +02:00
parent 2b1bf967ee
commit 131138b9a7
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -419,9 +419,15 @@ void DirectorPlotData::inkBlitShape(Common::Rect &srcRect) {
fillAreaRect.moveTo(srcRect.left, srcRect.top);
Graphics::MacPlotData plotFill(dst, nullptr, &d->getPatterns(), ms->pattern, srcRect.left, srcRect.top, 1, ms->backColor);
uint strokePattern = 1;
if (ms->spriteType == kOutlinedRectangleSprite || ms->spriteType == kOutlinedRoundedRectangleSprite
|| ms->spriteType == kOutlinedOvalSprite)
strokePattern = ms->pattern;
Common::Rect strokeRect(MAX((int)srcRect.width() - ms->lineSize, 0), MAX((int)srcRect.height() - ms->lineSize, 0));
strokeRect.moveTo(srcRect.left, srcRect.top);
Graphics::MacPlotData plotStroke(dst, nullptr, &d->getPatterns(), 1, strokeRect.left, strokeRect.top, ms->lineSize, ms->backColor);
Graphics::MacPlotData plotStroke(dst, nullptr, &d->getPatterns(), strokePattern, strokeRect.left, strokeRect.top, ms->lineSize, ms->backColor);
switch (ms->spriteType) {
case kRectangleSprite: