aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-26 12:07:21 +0200
committerFilippos Karapetis2014-12-26 12:07:21 +0200
commit4258750f5025e471ba682945e3091fdaa50c7bc9 (patch)
tree4a43fbeefd384b18d44824f66e98bfb35640f7cf /engines
parent2350eca546396775c6e9ac9875ebd59bcc17663f (diff)
downloadscummvm-rg350-4258750f5025e471ba682945e3091fdaa50c7bc9.tar.gz
scummvm-rg350-4258750f5025e471ba682945e3091fdaa50c7bc9.tar.bz2
scummvm-rg350-4258750f5025e471ba682945e3091fdaa50c7bc9.zip
ZVISION: Rename _halveDelay to _doubleFPS, to match its config setting
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/zvision.cpp12
-rw-r--r--engines/zvision/zvision.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp
index 11e417d4ac..e9a4486ded 100644
--- a/engines/zvision/zvision.cpp
+++ b/engines/zvision/zvision.cpp
@@ -96,7 +96,7 @@ ZVision::ZVision(OSystem *syst, const ZVisionGameDescription *gameDesc)
_menu(nullptr),
_searchManager(nullptr),
_textRenderer(nullptr),
- _halveDelay(false),
+ _doubleFPS(false),
_audioId(0),
_frameRenderDelay(2),
_keyboardVelocity(0),
@@ -213,7 +213,7 @@ void ZVision::initialize() {
// Create debugger console. It requires GFX to be initialized
_console = new Console(this);
- _halveDelay = ConfMan.getBool("doublefps");
+ _doubleFPS = ConfMan.getBool("doublefps");
}
Common::Error ZVision::run() {
@@ -255,7 +255,7 @@ Common::Error ZVision::run() {
// Ensure non-negative
delay = delay < 0 ? 0 : delay;
- if (_halveDelay) {
+ if (_doubleFPS) {
delay >>= 1;
}
@@ -291,7 +291,7 @@ bool ZVision::askQuestion(const Common::String &str) {
}
}
_system->updateScreen();
- if (_halveDelay)
+ if (_doubleFPS)
_system->delayMillis(33);
else
_system->delayMillis(66);
@@ -319,7 +319,7 @@ void ZVision::delayedMessage(const Common::String &str, uint16 milsecs) {
break;
}
_system->updateScreen();
- if (_halveDelay)
+ if (_doubleFPS)
_system->delayMillis(33);
else
_system->delayMillis(66);
@@ -365,7 +365,7 @@ bool ZVision::canRender() {
void ZVision::updateRotation() {
int16 _velocity = _mouseVelocity + _keyboardVelocity;
- if (_halveDelay)
+ if (_doubleFPS)
_velocity /= 2;
if (_velocity) {
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h
index e9b8ca4547..d3beae5e61 100644
--- a/engines/zvision/zvision.h
+++ b/engines/zvision/zvision.h
@@ -121,7 +121,7 @@ private:
int _frameRenderDelay;
int16 _mouseVelocity;
int16 _keyboardVelocity;
- bool _halveDelay;
+ bool _doubleFPS;
bool _videoIsPlaying;
uint8 _cheatBuffer[KEYBUF_SIZE];