summaryrefslogtreecommitdiff
path: root/apps/plugins/xworld/sys.c
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2014-12-24 11:43:28 -0500
committerMichael Giacomelli <giac2000@hotmail.com>2014-12-28 02:48:42 +0100
commit193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa (patch)
tree1afbe3a32d57b7689686a715de549a441efc0314 /apps/plugins/xworld/sys.c
parente7c282fed754bfc4a2fbdc2e8e1a7598b5fae27c (diff)
downloadrockbox-193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa.zip
rockbox-193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa.tar.gz
rockbox-193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa.tar.bz2
rockbox-193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa.tar.xz
XWorld: cleanup
- Comment keymaps.h - Tie XWORLD_DEBUG into ROCKBOX_HAS_LOGF to ease debugging - Fix up the manual a little bit Change-Id: I12cfb58001199036cd67dbaa27f164e6790a199d Reviewed-on: http://gerrit.rockbox.org/1084 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
Diffstat (limited to 'apps/plugins/xworld/sys.c')
-rw-r--r--apps/plugins/xworld/sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/xworld/sys.c b/apps/plugins/xworld/sys.c
index 0af13ef..14c928f 100644
--- a/apps/plugins/xworld/sys.c
+++ b/apps/plugins/xworld/sys.c
@@ -787,13 +787,13 @@ void sys_sleep(struct System* sys, uint32_t duration)
{
(void) sys;
/* duration is in ms */
- rb->sleep(duration / 10);
+ rb->sleep(duration / (1000/HZ));
}
uint32_t sys_getTimeStamp(struct System* sys)
{
(void) sys;
- return (uint32_t) (*rb->current_tick) * 10;
+ return (uint32_t) (*rb->current_tick * (1000/HZ));
}
static int16_t rb_soundbuf [MAX_SOUNDBUF_SIZE] IBSS_ATTR;