aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamweb.cpp
diff options
context:
space:
mode:
authorVladimir2011-06-08 02:57:56 +0400
committerAlyssa Milburn2011-06-15 17:32:47 +0200
commit221a3575a35c7848937f575179b4ccdc4ae86ddb (patch)
treeb4b57993f2871ae758f9149b03bf515583842c31 /engines/dreamweb/dreamweb.cpp
parent6a2ac8728c26b70ecd810999a8dab983b8a12bc7 (diff)
downloadscummvm-rg350-221a3575a35c7848937f575179b4ccdc4ae86ddb.tar.gz
scummvm-rg350-221a3575a35c7848937f575179b4ccdc4ae86ddb.tar.bz2
scummvm-rg350-221a3575a35c7848937f575179b4ccdc4ae86ddb.zip
DREAMWEB: added mousecall stub
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r--engines/dreamweb/dreamweb.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 8e1b04bfa1..f2ee6a6268 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -236,7 +236,17 @@ void dontloadseg(Context &context) {
}
void mousecall(Context &context) {
- ::error("mousecall");
+ Common::Point pos = engine()->mousePos();
+ if (pos.x > 298)
+ pos.x = 298;
+ if (pos.x < 15)
+ pos.x = 15;
+ if (pos.y < 15)
+ pos.y = 15;
+ if (pos.y > 184)
+ pos.y = 184;
+ context.cx = pos.x;
+ context.dx = pos.y;
}
void setmouse(Context &context) {