diff options
author | Travis Howell | 2004-10-05 05:52:48 +0000 |
---|---|---|
committer | Travis Howell | 2004-10-05 05:52:48 +0000 |
commit | 56ae86ef4fd96807e3fa4c25f89b45ecfa377266 (patch) | |
tree | a048cc32eb9398aab5b950542e3ec483cfedfca5 /scumm/script_v80he.cpp | |
parent | f1ffeaf3ecebbbb1806645d70b3b745d9da4b7ea (diff) | |
download | scummvm-rg350-56ae86ef4fd96807e3fa4c25f89b45ecfa377266.tar.gz scummvm-rg350-56ae86ef4fd96807e3fa4c25f89b45ecfa377266.tar.bz2 scummvm-rg350-56ae86ef4fd96807e3fa4c25f89b45ecfa377266.zip |
HE71+ games use wizImages for charset too.
svn-id: r15417
Diffstat (limited to 'scumm/script_v80he.cpp')
-rw-r--r-- | scumm/script_v80he.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index 6b100a14b6..486def2e0f 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -251,7 +251,7 @@ void ScummEngine_v80he::setupOpcodes() { /* A4 */ OPCODE(o72_arrayOps), OPCODE(o6_invalid), - OPCODE(o6_drawBox), + OPCODE(o80_drawBox), OPCODE(o6_pop), /* A8 */ OPCODE(o6_getActorWidth), @@ -611,6 +611,20 @@ void ScummEngine_v80he::o80_setState() { removeObjectFromDrawQue(obj); } +void ScummEngine_v80he::o80_drawBox() { + int x, y, x2, y2, color; + color = pop(); + y2 = pop(); + x2 = pop(); + y = pop(); + x = pop(); + + if (color & 0x8000) + color &= 0x7FFF; + + drawBox(x, y, x2, y2, color); +} + void ScummEngine_v80he::o80_drawWizPolygon() { WizImage wi; wi.x1 = wi.y1 = pop(); |