aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v2.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_v2.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_v2.cpp')
-rw-r--r--scumm/script_v2.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index b8242be326..a717980013 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -1410,7 +1410,7 @@ void Scumm::o6_putActorAtObject()
if (whereIsObject(obj) != WIO_NOT_FOUND) {
getObjectXYPos(obj, x, y);
} else {
- x = 160;
+ x = (_realWidth / 2);
y = 120;
}
if (room == 0xFF)
@@ -1790,14 +1790,14 @@ void Scumm::o6_roomOps()
case 172: /* room scroll */
b = pop();
a = pop();
- 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;
@@ -1805,7 +1805,7 @@ void Scumm::o6_roomOps()
case 174: /* set screen */
b = pop();
a = pop();
- initScreens(0, a, 320, b);
+ initScreens(0, a, _realWidth, b);
break;
case 175: /* set palette color */