aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2004-12-20 16:55:55 +0000
committerChris Apers2004-12-20 16:55:55 +0000
commit099f5de891917f433f5cdf4304bb68a9a7f479db (patch)
tree123863d9c36c2f15e5e4faba206e8744bd6e4cd1
parentf9d9484d7be4fc5cd14f28e866ce35ff79a2df97 (diff)
downloadscummvm-rg350-099f5de891917f433f5cdf4304bb68a9a7f479db.tar.gz
scummvm-rg350-099f5de891917f433f5cdf4304bb68a9a7f479db.tar.bz2
scummvm-rg350-099f5de891917f433f5cdf4304bb68a9a7f479db.zip
Speedup a bit PalmOS port
svn-id: r16165
-rw-r--r--queen/input.cpp4
-rw-r--r--sword1/control.cpp3
-rw-r--r--sword1/credits.cpp5
-rw-r--r--sword1/sword1.cpp2
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);
}