diff options
-rw-r--r-- | scumm/wiz_he.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index ef2d83f9b6..bf67aa1653 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -1281,8 +1281,8 @@ void Wiz::drawWizPolygonTransform(int resNum, int state, Common::Point *wp, int bbox[3].y = wizH - 1; int16 xmin_p, xmax_p, ymin_p, ymax_p; - xmin_p = ymin_p = 0x7FFF; - xmax_p = ymax_p = 0x8000; + xmin_p = ymin_p = (int16)0x7FFF; + xmax_p = ymax_p = (int16)0x8000; for (i = 0; i < 4; ++i) { xmin_p = MIN(wp[i].x, xmin_p); @@ -1292,8 +1292,8 @@ void Wiz::drawWizPolygonTransform(int resNum, int state, Common::Point *wp, int } int16 xmin_b, xmax_b, ymin_b, ymax_b; - xmin_b = ymin_b = 0x7FFF; - xmax_b = ymax_b = 0x8000; + xmin_b = ymin_b = (int16)0x7FFF; + xmax_b = ymax_b = (int16)0x8000; for (i = 0; i < 4; ++i) { xmin_b = MIN(bbox[i].x, xmin_b); |