From f9b90e91031dbd23fed24e832de4d8d2e15151a0 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 6 Apr 2007 22:55:00 +0000 Subject: Now charcell displays require lcd_update() for updating the main lcd content like bitmap displays. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13050 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/flipit.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'apps/plugins/flipit.c') diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c index 91afc9eca7..9bff0b09a3 100644 --- a/apps/plugins/flipit.c +++ b/apps/plugins/flipit.c @@ -323,9 +323,7 @@ static void move_cursor(int x, int y) + ( ( y + 4 + cursor_pos/5 )%4 )*5; draw_cursor(); } -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif } /* initialize the board */ @@ -339,9 +337,8 @@ static void flipit_init(void) toggle[i]=1; draw_spot(i); } -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif + for (i=0; i<20; i++) { cursor_pos = (rb->rand() % 20); flipit_toggle(); @@ -351,9 +348,7 @@ static void flipit_init(void) draw_cursor(); moves = 0; draw_info_panel(); -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif } /* the main game loop */ @@ -392,9 +387,7 @@ static bool flipit_loop(void) cursor_pos = i; flipit_toggle(); draw_cursor(); -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif rb->sleep(HZ*2/3); } } @@ -412,9 +405,7 @@ static bool flipit_loop(void) cursor_pos = i; flipit_toggle(); draw_cursor(); -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif break; } } @@ -429,9 +420,7 @@ static bool flipit_loop(void) if (!flipit_finished()) { flipit_toggle(); draw_cursor(); -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif } break; @@ -546,9 +535,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) spots[i]=1; draw_spot(i); } -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif rb->sleep(HZ*3/2); rb->srand(*rb->current_tick); -- cgit v1.2.3