HE70+ games use flags in drawBox().

Fixes glitches in farmdemo (Old version), freddi2, lost/smaller.

svn-id: r18216
This commit is contained in:
Travis Howell 2005-05-22 10:38:57 +00:00
parent 76f8021a28
commit 7dc115be6f
5 changed files with 14 additions and 20 deletions

View file

@ -251,7 +251,7 @@ void ScummEngine_v80he::setupOpcodes() {
/* A4 */
OPCODE(o72_arrayOps),
OPCODE(o6_invalid),
OPCODE(o80_drawBox),
OPCODE(o6_drawBox),
OPCODE(o6_pop),
/* A8 */
OPCODE(o6_getActorWidth),
@ -590,20 +590,6 @@ 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();