From 1231e934d6ba0c4f73c649c75e86c7a7854aa717 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 10 Feb 2005 21:45:21 +0000 Subject: Removed flicker on player sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5884 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/cube.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'apps') 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 -- cgit v1.2.3