aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v1.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-09-01 15:01:40 +0000
committerPaweł Kołodziejski2002-09-01 15:01:40 +0000
commitdaa997fab248b92c81f9299ae0fcc857f69ca754 (patch)
tree98bc55cd8aaa109cc7c438017f4692d1fa0b52d9 /scumm/script_v1.cpp
parenta2ab750f88fbbd34decdcbae50a9454075ccdcb0 (diff)
downloadscummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.tar.gz
scummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.tar.bz2
scummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.zip
fixes to resolutions
svn-id: r4893
Diffstat (limited to 'scumm/script_v1.cpp')
-rw-r--r--scumm/script_v1.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/scumm/script_v1.cpp b/scumm/script_v1.cpp
index fe85bc94b6..96eb92394a 100644
--- a/scumm/script_v1.cpp
+++ b/scumm/script_v1.cpp
@@ -1881,14 +1881,14 @@ void Scumm::o5_roomOps()
a = getVarOrDirectWord(0x80);
b = getVarOrDirectWord(0x40);
}
- if (a < 160)
- a = 160;
- if (b < 160)
- b = 160;
- if (a > _scrWidth - 160)
- a = _scrWidth - 160;
- if (b > _scrWidth - 160)
- b = _scrWidth - 160;
+ if (a < (_realWidth / 2))
+ a = (_realWidth / 2);
+ if (b < (_realWidth / 2))
+ b = (_realWidth / 2);
+ if (a > _scrWidth - (_realWidth / 2))
+ a = _scrWidth - (_realWidth / 2);
+ if (b > _scrWidth - (_realWidth / 2))
+ b = _scrWidth - (_realWidth / 2);
_vars[VAR_CAMERA_MIN_X] = a;
_vars[VAR_CAMERA_MAX_X] = b;
break;
@@ -1911,7 +1911,7 @@ void Scumm::o5_roomOps()
a = getVarOrDirectWord(0x80);
b = getVarOrDirectWord(0x40);
}
- initScreens(0, a, 320, b);
+ initScreens(0, a, _realWidth, b);
break;
case 4: /* set palette color */
if (_features & GF_SMALL_HEADER) {