diff options
author | Colin Snover | 2017-09-30 00:03:05 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-30 01:08:12 -0500 |
commit | b2966f3fc8b7bbf429373d9988ea1280660dc33b (patch) | |
tree | f65095e68becdbe369bd3adef42903b28ef69cac /engines/sci/graphics | |
parent | dc7e37fdb6800124cccf231282d4b1475249a654 (diff) | |
download | scummvm-rg350-b2966f3fc8b7bbf429373d9988ea1280660dc33b.tar.gz scummvm-rg350-b2966f3fc8b7bbf429373d9988ea1280660dc33b.tar.bz2 scummvm-rg350-b2966f3fc8b7bbf429373d9988ea1280660dc33b.zip |
SCI32: Fix support for RAMA demo
Fixes Trac#10251.
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/frameout.cpp | 2 | ||||
-rw-r--r-- | engines/sci/graphics/screen_item32.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp index 6ea4975ea8..f2ae0dfdba 100644 --- a/engines/sci/graphics/frameout.cpp +++ b/engines/sci/graphics/frameout.cpp @@ -1228,7 +1228,7 @@ bool GfxFrameout::isOnMe(const ScreenItem &screenItem, const Plane &plane, const scaledPosition.x -= screenItem._scaledPosition.x; scaledPosition.y -= screenItem._scaledPosition.y; - if (getSciVersion() < SCI_VERSION_3) { + if (getSciVersion() < SCI_VERSION_2_1_LATE) { mulru(scaledPosition, Ratio(celObj._xResolution, _currentBuffer.screenWidth), Ratio(celObj._yResolution, _currentBuffer.screenHeight)); } 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); } |