From 418fd64554c76e81c055dec449980efd0317e9f8 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 31 Jan 2006 02:19:14 +0000 Subject: Works fine now. svn-id: r20323 --- scumm/wiz_he.cpp | 13 ++++++++++--- 1 file 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) { -- cgit v1.2.3