summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-02-10 21:45:21 +0000
committerJens Arnold <amiconn@rockbox.org>2005-02-10 21:45:21 +0000
commit1231e934d6ba0c4f73c649c75e86c7a7854aa717 (patch)
tree7ebf183b32b774ec05a6b8cbf99e208cd3566e3e /apps
parent54828b7717a61e101764742c82bb61b7fd914bb5 (diff)
Removed flicker on player sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/cube.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 52edf3375f..0cc12fee2f 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -343,14 +343,27 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
}
rb->lcd_update();
#else
- rb->lcd_clear_display();
if (t_disp>0)
{
+ if (t_disp == DISP_TIME)
+ {
+ rb->snprintf(buffer, 30, "x%d", xs);
+ rb->lcd_puts(0, 0, buffer);
+ rb->snprintf(buffer, 30, "y%d", ys);
+ rb->lcd_puts(8, 0, buffer);
+ rb->snprintf(buffer, 30, "z%d", zs);
+ rb->lcd_puts(0, 1, buffer);
+ rb->snprintf(buffer, 30, "h%d", highspeed);
+ rb->lcd_puts(8, 1, buffer);
+ }
t_disp--;
- rb->snprintf(buffer, 30, "x%d y%d", xs, ys);
- rb->lcd_puts(0, 0, buffer);
- rb->snprintf(buffer, 30, "z%d h%d", zs, highspeed);
- rb->lcd_puts(0, 1, buffer);
+ if (t_disp == 0)
+ {
+ rb->lcd_puts(0, 0, " ");
+ rb->lcd_puts(8, 0, " ");
+ rb->lcd_puts(0, 1, " ");
+ rb->lcd_puts(8, 1, " ");
+ }
}
pgfx_display(3, 0);
#endif