diff options
author | Filippos Karapetis | 2009-10-06 17:45:57 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-06 17:45:57 +0000 |
commit | c17495d8952e03de03288829c487a60014d2656e (patch) | |
tree | ae7e256e67214ad505156256182476de7ccea370 /engines/sci/gui/gui_palette.cpp | |
parent | b8f18e8ddd60c9e7cf063f449857f855ba9bd323 (diff) | |
download | scummvm-rg350-c17495d8952e03de03288829c487a60014d2656e.tar.gz scummvm-rg350-c17495d8952e03de03288829c487a60014d2656e.tar.bz2 scummvm-rg350-c17495d8952e03de03288829c487a60014d2656e.zip |
- Fixed kGetTime() again
- Removed the odd way of calculating elapsed time in SciGui(). We got _system->getMillis() for that purpose
- Replaced the code in SciGui::wait() with the one in SciGui32::wait (which works fine, and is correct). The code in SciGui() was not polling for events while waiting, either
svn-id: r44712
Diffstat (limited to 'engines/sci/gui/gui_palette.cpp')
-rw-r--r-- | engines/sci/gui/gui_palette.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/gui/gui_palette.cpp b/engines/sci/gui/gui_palette.cpp index ec4e127814..953ed93121 100644 --- a/engines/sci/gui/gui_palette.cpp +++ b/engines/sci/gui/gui_palette.cpp @@ -229,10 +229,10 @@ void SciGuiPalette::merge(GuiPalette *pFrom, GuiPalette *pTo, uint16 flag) { pTo->colors[res & 0xFF].used |= 0x10; } } - pTo->timestamp = _gui->getTimeTicks(); + pTo->timestamp = (g_system->getMillis() - _s->game_start_time) * 60 / 1000;; } -uint16 SciGuiPalette::matchColor(GuiPalette*pPal, byte r, byte g, byte b) { +uint16 SciGuiPalette::matchColor(GuiPalette *pPal, byte r, byte g, byte b) { byte found = 0xFF; int diff = 0x2FFFF, cdiff; int16 dr,dg,db; @@ -275,7 +275,7 @@ void SciGuiPalette::setIntensity(int fromColor, int toColor, int intensity, GuiP void SciGuiPalette::animate(byte fromColor, byte toColor, int speed) { GuiColor col; int len = toColor - fromColor - 1; - uint32 now = _gui->getTimeTicks(); + uint32 now = (g_system->getMillis() - _s->game_start_time) * 60 / 1000;; // search for sheduled animations with the same 'from' value int sz = _palSchedules.size(); for (int i = 0; i < sz; i++) { |