aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r--engines/voyeur/events.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp
index 03ea4d3252..7ce7351e65 100644
--- a/engines/voyeur/events.cpp
+++ b/engines/voyeur/events.cpp
@@ -73,7 +73,7 @@ EventsManager::EventsManager(VoyeurEngine *vm) : _intPtr(_gameData),
Common::fill(&_cycleTime[0], &_cycleTime[4], 0);
Common::fill(&_cycleNext[0], &_cycleNext[4], (byte *)nullptr);
_cyclePtr = NULL;
-
+
_leftClick = _rightClick = false;
_mouseClicked = _newMouseClicked = false;
_newLeftClick = _newRightClick = false;;
@@ -158,7 +158,7 @@ void EventsManager::checkForNextFrameCounter() {
showMousePosition();
// Display the frame
- g_system->copyRectToScreen((byte *)_vm->_graphicsManager->_screenSurface.getPixels(),
+ g_system->copyRectToScreen((byte *)_vm->_graphicsManager->_screenSurface.getPixels(),
SCREEN_WIDTH, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
g_system->updateScreen();
@@ -218,7 +218,7 @@ void EventsManager::videoTimer() {
_gameData._hasPalette = false;
g_system->getPaletteManager()->setPalette(_gameData._palette +
- _gameData._palStartIndex * 3, _gameData._palStartIndex,
+ _gameData._palStartIndex * 3, _gameData._palStartIndex,
_gameData._palEndIndex - _gameData._palStartIndex + 1);
}
}
@@ -241,7 +241,7 @@ void EventsManager::delayClick(int cycles) {
do {
g_system->delayMillis(10);
getMouseInfo();
- } while (!_vm->shouldQuit() && g_system->getMillis() < delayEnd
+ } while (!_vm->shouldQuit() && g_system->getMillis() < delayEnd
&& !_vm->_eventsManager->_mouseClicked);
}
@@ -266,18 +266,18 @@ void EventsManager::pollEvents() {
}
return;
case Common::EVENT_LBUTTONDOWN:
- _vm->_eventsManager->_newLeftClick = true;
- _vm->_eventsManager->_newMouseClicked = true;
+ _newLeftClick = true;
+ _newMouseClicked = true;
return;
case Common::EVENT_RBUTTONDOWN:
- _vm->_eventsManager->_newRightClick = true;
- _vm->_eventsManager->_newMouseClicked = true;
+ _newRightClick = true;
+ _newMouseClicked = true;
return;
case Common::EVENT_LBUTTONUP:
case Common::EVENT_RBUTTONUP:
- _vm->_eventsManager->_newMouseClicked = false;
- _vm->_eventsManager->_newLeftClick = false;
- _vm->_eventsManager->_newRightClick = false;
+ _newMouseClicked = false;
+ _newLeftClick = false;
+ _newRightClick = false;
return;
case Common::EVENT_MOUSEMOVE:
_mousePos = event.mouse;
@@ -315,7 +315,7 @@ void EventsManager::startFade(CMapResource *cMap) {
palEntry._bEntry = vgaP[2] << 8;
int bDiff = (cMap->_entries[mapIndex * 3 + 2] << 8) - palEntry._bEntry;
palEntry._bChange = bDiff / cMap->_steps;
-
+
palEntry._palIndex = idx;
if (!(cMap->_fadeStatus & 1))
++mapIndex;
@@ -431,12 +431,12 @@ void EventsManager::vDoCycleInt() {
byte b = pPal[start * 3 + 2];
Common::copy(&pPal[start * 3 + 3], &pPal[end * 3 + 3], &pPal[start * 3]);
-
+
// Place the original saved entry at the end of the range
pPal[end * 3] = r;
pPal[end * 3 + 1] = g;
pPal[end * 3 + 2] = b;
-
+
if (_fadeStatus & 1) {
//dx = start, di = end
warning("TODO: Adjustment of ViewPortListResource");
@@ -454,12 +454,12 @@ void EventsManager::vDoCycleInt() {
// Move the remainder of the range forwards one entry
Common::copy_backward(&pPal[start * 3], &pPal[end * 3], &pPal[end * 3 + 3]);
-
+
// Place the original saved entry at the end of the range
pPal[start * 3] = r;
pPal[start * 3 + 1] = g;
pPal[start * 3 + 2] = b;
-
+
if (_fadeStatus & 1) {
//dx = start, di = end
warning("TODO: Adjustment of ViewPortListResource");
@@ -574,13 +574,13 @@ void EventsManager::getMouseInfo() {
}
}
- _vm->_eventsManager->_mouseClicked = _vm->_eventsManager->_newMouseClicked;
- _vm->_eventsManager->_leftClick = _vm->_eventsManager->_newLeftClick;
- _vm->_eventsManager->_rightClick = _vm->_eventsManager->_newRightClick;
+ _mouseClicked = _newMouseClicked;
+ _leftClick = _newLeftClick;
+ _rightClick = _newRightClick;
- _vm->_eventsManager->_newMouseClicked = false;
- _vm->_eventsManager->_newLeftClick = false;
- _vm->_eventsManager->_newRightClick = false;
+ _newMouseClicked = false;
+ _newLeftClick = false;
+ _newRightClick = false;
}
void EventsManager::startCursorBlink() {