diff options
| -rw-r--r-- | queen/input.cpp | 4 | ||||
| -rw-r--r-- | sword1/control.cpp | 3 | ||||
| -rw-r--r-- | sword1/credits.cpp | 5 | ||||
| -rw-r--r-- | sword1/sword1.cpp | 2 | 
4 files changed, 12 insertions, 2 deletions
| diff --git a/queen/input.cpp b/queen/input.cpp index ddadd5e35f..dfd76655e7 100644 --- a/queen/input.cpp +++ b/queen/input.cpp @@ -134,7 +134,8 @@ void Input::delay(uint amount) {  				break;  			}  		} - +		 +#ifndef __PALM_OS__  		if (amount == 0)  			break; @@ -142,6 +143,7 @@ void Input::delay(uint amount) {  		if (this_delay > amount)  			this_delay = amount;  		_system->delayMillis(this_delay); +#endif  		cur = _system->getMillis();  	} while (cur < start + amount);  } 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);  } | 
