aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/pink.cpp
diff options
context:
space:
mode:
authorwhiterandrek2018-06-09 15:54:21 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commitbfd1b62063040c970894fbf81d9dca9c3d4088d0 (patch)
tree8fc1641df6073f649c7bd47dd9bdfe076ff52e2e /engines/pink/pink.cpp
parent4dd40b0f7b8fdf27b59fc7e330b624cd844348da (diff)
downloadscummvm-rg350-bfd1b62063040c970894fbf81d9dca9c3d4088d0.tar.gz
scummvm-rg350-bfd1b62063040c970894fbf81d9dca9c3d4088d0.tar.bz2
scummvm-rg350-bfd1b62063040c970894fbf81d9dca9c3d4088d0.zip
PINK: change drawing method
Diffstat (limited to 'engines/pink/pink.cpp')
-rw-r--r--engines/pink/pink.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp
index 53407e6f66..eaeadbcd2e 100644
--- a/engines/pink/pink.cpp
+++ b/engines/pink/pink.cpp
@@ -41,7 +41,7 @@ namespace Pink {
Pink::PinkEngine::PinkEngine(OSystem *system, const ADGameDescription *desc)
: Engine(system), _console(nullptr), _rnd("pink"),
_desc(*desc), _bro(nullptr), _module(nullptr),
- _director(_system), _pdaMgr(this) {
+ _director(), _pdaMgr(this) {
debug("PinkEngine constructed");
DebugMan.addDebugChannel(kPinkDebugGeneral, "general", "General issues");
@@ -117,9 +117,6 @@ Common::Error Pink::PinkEngine::run() {
_actor->onLeftButtonClick(event.mouse);
break;
case Common::EVENT_KEYDOWN:
- if (event.kbd.keycode == Common::KEYCODE_d)
- _director.showBounds = !_director.showBounds;
- else
_actor->onKeyboardButtonClick(event.kbd.keycode);
break;
// don't know why it is used in original
@@ -132,8 +129,7 @@ Common::Error Pink::PinkEngine::run() {
_actor->update();
_director.update();
- _director.draw();
- _system->delayMillis(5);
+ _system->delayMillis(10);
}
return Common::kNoError;