aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/screen_item32.cpp
diff options
context:
space:
mode:
authorColin Snover2017-09-30 00:03:05 -0500
committerColin Snover2017-09-30 01:08:12 -0500
commitb2966f3fc8b7bbf429373d9988ea1280660dc33b (patch)
treef65095e68becdbe369bd3adef42903b28ef69cac /engines/sci/graphics/screen_item32.cpp
parentdc7e37fdb6800124cccf231282d4b1475249a654 (diff)
downloadscummvm-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/screen_item32.cpp')
-rw-r--r--engines/sci/graphics/screen_item32.cpp8
1 files changed, 4 insertions, 4 deletions
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);
}