diff options
author | Eugene Sandulenko | 2007-11-25 13:33:28 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-11-25 13:33:28 +0000 |
commit | 7844ad6f2c5499a1dfd9430cd57686ed36d908c9 (patch) | |
tree | b278b727611302c700069833fadff382013fcd72 /engines/scumm | |
parent | 8151e1672f461f12467dd3b821ce32965a72159a (diff) | |
download | scummvm-rg350-7844ad6f2c5499a1dfd9430cd57686ed36d908c9.tar.gz scummvm-rg350-7844ad6f2c5499a1dfd9430cd57686ed36d908c9.tar.bz2 scummvm-rg350-7844ad6f2c5499a1dfd9430cd57686ed36d908c9.zip |
An attempt to implement thick line drawing.
svn-id: r29639
Diffstat (limited to 'engines/scumm')
-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); } |