diff options
author | Paul Gilbert | 2013-06-20 21:24:30 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-06-20 21:24:30 -0400 |
commit | ff270eb61e49a10401b6643b7c5b430268597789 (patch) | |
tree | fa0b47a044c6589396a47e17d41c6d21fa3b321b /engines/voyeur | |
parent | 412ac6a00df783802301463135659cbf5b5237ef (diff) | |
download | scummvm-rg350-ff270eb61e49a10401b6643b7c5b430268597789.tar.gz scummvm-rg350-ff270eb61e49a10401b6643b7c5b430268597789.tar.bz2 scummvm-rg350-ff270eb61e49a10401b6643b7c5b430268597789.zip |
VOYEUR: Fix setting cursor colour in lock screen
Diffstat (limited to 'engines/voyeur')
-rw-r--r-- | engines/voyeur/events.cpp | 2 | ||||
-rw-r--r-- | engines/voyeur/graphics.cpp | 8 | ||||
-rw-r--r-- | engines/voyeur/graphics.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index 7f8f55f9aa..ce481e0594 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -335,7 +335,7 @@ void EventsManager::vInitColor() { } void EventsManager::setCursorTo(int idx, int mode) { - switch (idx) { + switch (mode) { case 0: _vm->_graphicsManager.setColor(idx, 90, 90, 232); break; diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp index 3220977252..dd64aae28a 100644 --- a/engines/voyeur/graphics.cpp +++ b/engines/voyeur/graphics.cpp @@ -551,11 +551,11 @@ void GraphicsManager::resetPalette() { _vm->_eventsManager._intPtr._hasPalette = true; } -void GraphicsManager::setColor(int idx, int r, int g, int b) { +void GraphicsManager::setColor(int idx, byte r, byte g, byte b) { byte *vgaP = &_VGAColors[idx * 3]; - vgaP[0] = r >> 2; - vgaP[1] = g >> 2; - vgaP[2] = b >> 2; + vgaP[0] = r; + vgaP[1] = g; + vgaP[2] = b; _vm->_eventsManager._intPtr._palStartIndex = MIN(_vm->_eventsManager._intPtr._palStartIndex, idx); _vm->_eventsManager._intPtr._palEndIndex = MAX(_vm->_eventsManager._intPtr._palEndIndex, idx); diff --git a/engines/voyeur/graphics.h b/engines/voyeur/graphics.h index 6e6fdb154e..f6ad837b1a 100644 --- a/engines/voyeur/graphics.h +++ b/engines/voyeur/graphics.h @@ -108,7 +108,7 @@ public: void flipPage(); void clearPalette(); void resetPalette(); - void setColor(int idx, int r, int g, int b); + void setColor(int idx, byte r, byte g, byte b); void screenReset(); }; |