diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/he/wiz_he.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp index 164cfef7f8..05052fcd2a 100644 --- a/engines/scumm/he/wiz_he.cpp +++ b/engines/scumm/he/wiz_he.cpp @@ -1789,14 +1789,16 @@ void Wiz::fillWizLine(const WizParameters *params) { int x2 = params->box2.right; int y2 = params->box2.bottom; + drawProcP lineP; + + lineP.imageRect = &imageRect; + lineP.wizd = wizd; + lineP.width = w; + if (params->processFlags & kWPFThickLine) { - debug(0, "Unsupported ThickLine (%d, %d)", params->lineUnk1, params->lineUnk2); + assert (params->lineUnk2 == 1); // Catch untested usage + Graphics::drawThickLine(x1, y1, x2, y2, params->lineUnk1, color, drawProc, &lineP); } else { - drawProcP lineP; - - lineP.imageRect = &imageRect; - lineP.wizd = wizd; - lineP.width = w; Graphics::drawLine(x1, y1, x2, y2, color, drawProc, &lineP); } |