From b2966f3fc8b7bbf429373d9988ea1280660dc33b Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 30 Sep 2017 00:03:05 -0500 Subject: SCI32: Fix support for RAMA demo Fixes Trac#10251. --- engines/sci/graphics/screen_item32.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sci/graphics/screen_item32.cpp') diff --git a/engines/sci/graphics/screen_item32.cpp b/engines/sci/graphics/screen_item32.cpp index 5a35d30c54..14e71735fb 100644 --- a/engines/sci/graphics/screen_item32.cpp +++ b/engines/sci/graphics/screen_item32.cpp @@ -299,7 +299,7 @@ void ScreenItem::calcRects(const Plane &plane) { Ratio celToScreenX; Ratio celToScreenY; - if (getSciVersion() < SCI_VERSION_3) { + if (getSciVersion() < SCI_VERSION_2_1_LATE) { celToScreenX = Ratio(screenWidth, celObj._xResolution); celToScreenY = Ratio(screenHeight, celObj._yResolution); } @@ -311,7 +311,7 @@ void ScreenItem::calcRects(const Plane &plane) { // high resolution coordinates if (_useInsetRect) { - if (getSciVersion() < SCI_VERSION_3) { + if (getSciVersion() < SCI_VERSION_2_1_LATE) { const Ratio scriptToCelX(celObj._xResolution, scriptWidth); const Ratio scriptToCelY(celObj._yResolution, scriptHeight); mulru(_screenItemRect, scriptToCelX, scriptToCelY, 0); @@ -632,7 +632,7 @@ Common::Rect ScreenItem::getNowSeenRect(const Plane &plane) const { // high resolution coordinates if (_useInsetRect) { - if (getSciVersion() < SCI_VERSION_3) { + if (getSciVersion() < SCI_VERSION_2_1_LATE) { const Ratio scriptToCelX(celObj._xResolution, scriptWidth); const Ratio scriptToCelY(celObj._yResolution, scriptHeight); mulru(nsRect, scriptToCelX, scriptToCelY, 0); @@ -678,7 +678,7 @@ Common::Rect ScreenItem::getNowSeenRect(const Plane &plane) const { Ratio celToScriptX; Ratio celToScriptY; - if (getSciVersion() < SCI_VERSION_3) { + if (getSciVersion() < SCI_VERSION_2_1_LATE) { celToScriptX = Ratio(scriptWidth, celObj._xResolution); celToScriptY = Ratio(scriptHeight, celObj._yResolution); } -- cgit v1.2.3