diff options
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();  | 
