diff options
author | Vladimir | 2011-06-08 02:57:56 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:32:47 +0200 |
commit | 221a3575a35c7848937f575179b4ccdc4ae86ddb (patch) | |
tree | b4b57993f2871ae758f9149b03bf515583842c31 /engines/dreamweb | |
parent | 6a2ac8728c26b70ecd810999a8dab983b8a12bc7 (diff) | |
download | scummvm-rg350-221a3575a35c7848937f575179b4ccdc4ae86ddb.tar.gz scummvm-rg350-221a3575a35c7848937f575179b4ccdc4ae86ddb.tar.bz2 scummvm-rg350-221a3575a35c7848937f575179b4ccdc4ae86ddb.zip |
DREAMWEB: added mousecall stub
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 12 | ||||
-rw-r--r-- | engines/dreamweb/dreamweb.h | 1 |
2 files changed, 12 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) { diff --git a/engines/dreamweb/dreamweb.h b/engines/dreamweb/dreamweb.h index 03db193b23..245f4967bb 100644 --- a/engines/dreamweb/dreamweb.h +++ b/engines/dreamweb/dreamweb.h @@ -81,6 +81,7 @@ public: void readFromFile(uint8 *dst, unsigned size); void closeFile(); + Common::Point mousePos() const { return _mouse; } private: const DreamWebGameDescription *_gameDescription; Common::RandomSource _rnd; |