aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel/scalpel.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-30 10:46:19 -0400
committerPaul Gilbert2015-05-30 10:46:19 -0400
commit6b95fc6b1132cf5ce6edc4216368bd38eddc939b (patch)
tree45f0d9fa5e65ae9f42fefb301498c2dd704bf772 /engines/sherlock/scalpel/scalpel.cpp
parentc3712f9a73eb7511c2a5bea20aa61ea21d3258f4 (diff)
parent895189e3ffd1931ca01991731f98bbf74796e05d (diff)
downloadscummvm-rg350-6b95fc6b1132cf5ce6edc4216368bd38eddc939b.tar.gz
scummvm-rg350-6b95fc6b1132cf5ce6edc4216368bd38eddc939b.tar.bz2
scummvm-rg350-6b95fc6b1132cf5ce6edc4216368bd38eddc939b.zip
Merge branch 'sherlock2'
Diffstat (limited to 'engines/sherlock/scalpel/scalpel.cpp')
-rw-r--r--engines/sherlock/scalpel/scalpel.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp
index bee44bfb7d..304445df76 100644
--- a/engines/sherlock/scalpel/scalpel.cpp
+++ b/engines/sherlock/scalpel/scalpel.cpp
@@ -24,6 +24,7 @@
#include "sherlock/sherlock.h"
#include "sherlock/music.h"
#include "sherlock/animation.h"
+#include "engines/util.h"
namespace Sherlock {
@@ -379,6 +380,9 @@ ScalpelEngine::~ScalpelEngine() {
}
void ScalpelEngine::initialize() {
+ initGraphics(320, 200, false);
+
+ // Let the base engine intialize
SherlockEngine::initialize();
_darts = new Darts(this);
@@ -580,9 +584,9 @@ bool ScalpelEngine::scrollCredits() {
_screen->transBlitFrom(creditsImages[1], Common::Point(10, 400 - idx), false, 0);
// Don't show credit text on the top and bottom ten rows of the screen
- _screen->blitFrom(_screen->_backBuffer1, Common::Point(0, 0), Common::Rect(0, 0, SHERLOCK_SCREEN_WIDTH, 10));
- _screen->blitFrom(_screen->_backBuffer1, Common::Point(0, SHERLOCK_SCREEN_HEIGHT - 10),
- Common::Rect(0, SHERLOCK_SCREEN_HEIGHT - 10, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT));
+ _screen->blitFrom(_screen->_backBuffer1, Common::Point(0, 0), Common::Rect(0, 0, _screen->w(), 10));
+ _screen->blitFrom(_screen->_backBuffer1, Common::Point(0, _screen->h() - 10),
+ Common::Rect(0, _screen->h() - 10, _screen->w(), _screen->h()));
_events->delay(100);
}
@@ -804,7 +808,6 @@ void ScalpelEngine::startScene() {
break;
}
- _events->loadCursors("rmouse.vgs");
_events->setCursor(ARROW);
if (_scene->_goToScene == 99) {
@@ -828,9 +831,11 @@ void ScalpelEngine::eraseMirror12() {
void ScalpelEngine::doMirror12() {
People &people = *_people;
+ Person &player = people._player;
+
Common::Point pt((*_people)[AL]._position.x / 100, (*_people)[AL]._position.y / 100);
- int frameNum = (*people[AL]._sequences)[people[AL]._sequenceNumber][people[AL]._frameNumber] +
- (*people[AL]._sequences)[people[AL]._sequenceNumber][0] - 2;
+ int frameNum = player._walkSequences[player._sequenceNumber][player._frameNumber] +
+ player._walkSequences[player._sequenceNumber][0] - 2;
switch ((*_people)[AL]._sequenceNumber) {
case WALK_DOWN: