aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2006-01-31 02:19:14 +0000
committerTravis Howell2006-01-31 02:19:14 +0000
commit418fd64554c76e81c055dec449980efd0317e9f8 (patch)
tree4688b970d31c985d5109ef04311a6e39f5fa9361 /scumm
parent3addf48534fecf4b80603d8ad4fb25d79b3b9432 (diff)
downloadscummvm-rg350-418fd64554c76e81c055dec449980efd0317e9f8.tar.gz
scummvm-rg350-418fd64554c76e81c055dec449980efd0317e9f8.tar.bz2
scummvm-rg350-418fd64554c76e81c055dec449980efd0317e9f8.zip
Works fine now.
svn-id: r20323
Diffstat (limited to 'scumm')
-rw-r--r--scumm/wiz_he.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp
index 4a0f4740dd..576c0394eb 100644
--- a/scumm/wiz_he.cpp
+++ b/scumm/wiz_he.cpp
@@ -121,9 +121,16 @@ void Wiz::polygonTransform(int resNum, int state, int po_x, int po_y, int angle,
getWizImageDim(resNum, state, w, h);
// set the transformation origin to the center of the image
- pts[1].x = pts[2].x = w / 2 - 1;
- pts[0].x = pts[0].y = pts[1].y = pts[3].x = -(w / 2);
- pts[2].y = pts[3].y = h / 2 - 1;
+ if (_vm->_heversion >= 99) {
+ pts[0].x = pts[3].x = -(w / 2);
+ pts[1].x = pts[2].x = w / 2 - 1;
+ pts[0].y = pts[1].y = -(h / 2);
+ pts[2].y = pts[3].y = h / 2 - 1;
+ } else {
+ pts[1].x = pts[2].x = w / 2 - 1;
+ pts[0].x = pts[0].y = pts[1].y = pts[3].x = -(w / 2);
+ pts[2].y = pts[3].y = h / 2 - 1;
+ }
// scale
if (scale != 256) {