diff options
author | Chris Apers | 2004-12-20 16:55:55 +0000 |
---|---|---|
committer | Chris Apers | 2004-12-20 16:55:55 +0000 |
commit | 099f5de891917f433f5cdf4304bb68a9a7f479db (patch) | |
tree | 123863d9c36c2f15e5e4faba206e8744bd6e4cd1 /sword1 | |
parent | f9d9484d7be4fc5cd14f28e866ce35ff79a2df97 (diff) | |
download | scummvm-rg350-099f5de891917f433f5cdf4304bb68a9a7f479db.tar.gz scummvm-rg350-099f5de891917f433f5cdf4304bb68a9a7f479db.tar.bz2 scummvm-rg350-099f5de891917f433f5cdf4304bb68a9a7f479db.zip |
Speedup a bit PalmOS port
svn-id: r16165
Diffstat (limited to 'sword1')
-rw-r--r-- | sword1/control.cpp | 3 | ||||
-rw-r--r-- | sword1/credits.cpp | 5 | ||||
-rw-r--r-- | sword1/sword1.cpp | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp index c6f68f5324..1f8ff59301 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -1033,7 +1033,9 @@ void Control::delay(uint32 msecs) { break; } } +#ifndef __PALM_OS__ _system->delayMillis(10); +#endif } while (_system->getMillis() < endTime); } @@ -1230,3 +1232,4 @@ const uint8 Control::_languageStrings[8 * 20][43] = { }; } // End of namespace Sword1 + diff --git a/sword1/credits.cpp b/sword1/credits.cpp index 7b4c255c50..75fc8b2060 100644 --- a/sword1/credits.cpp +++ b/sword1/credits.cpp @@ -21,7 +21,7 @@ #include "stdafx.h" #include "sword1/credits.h" -#include "screen.h" +#include "sword1/screen.h" #include "common/file.h" #include "sound/mixer.h" #include "common/util.h" @@ -281,8 +281,11 @@ void CreditsPlayer::delay(int msecs) { break; } } + +#ifndef __PALM_OS__ if (msecs > 0) _system->delayMillis(10); +#endif } while ((_system->getMillis() < start + msecs) && !SwordEngine::_systemVars.engineQuit); } diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index de6ae15006..1b474136a6 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -599,8 +599,10 @@ void SwordEngine::delay(int32 amount) { //copied and mutilated from sky.cpp break; } } +#ifndef __PALM_OS__ if (amount > 0) _system->delayMillis(10); +#endif } while (_system->getMillis() < start + amount); } |