summaryrefslogtreecommitdiff
path: root/apps/plugins/flipit.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-06 22:55:00 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-06 22:55:00 +0000
commitf9b90e91031dbd23fed24e832de4d8d2e15151a0 (patch)
tree964a492f1c4a658ec0ecb82d100ce62d2f6ec93a /apps/plugins/flipit.c
parenta5d7309d96cca974e1524dc746482ab2a26d7395 (diff)
downloadrockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.tar.gz
rockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.zip
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
Diffstat (limited to 'apps/plugins/flipit.c')
-rw-r--r--apps/plugins/flipit.c15
1 files changed, 1 insertions, 14 deletions
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)
323 + ( ( y + 4 + cursor_pos/5 )%4 )*5; 323 + ( ( y + 4 + cursor_pos/5 )%4 )*5;
324 draw_cursor(); 324 draw_cursor();
325 } 325 }
326#ifdef HAVE_LCD_BITMAP
327 rb->lcd_update(); 326 rb->lcd_update();
328#endif
329} 327}
330 328
331/* initialize the board */ 329/* initialize the board */
@@ -339,9 +337,8 @@ static void flipit_init(void)
339 toggle[i]=1; 337 toggle[i]=1;
340 draw_spot(i); 338 draw_spot(i);
341 } 339 }
342#ifdef HAVE_LCD_BITMAP
343 rb->lcd_update(); 340 rb->lcd_update();
344#endif 341
345 for (i=0; i<20; i++) { 342 for (i=0; i<20; i++) {
346 cursor_pos = (rb->rand() % 20); 343 cursor_pos = (rb->rand() % 20);
347 flipit_toggle(); 344 flipit_toggle();
@@ -351,9 +348,7 @@ static void flipit_init(void)
351 draw_cursor(); 348 draw_cursor();
352 moves = 0; 349 moves = 0;
353 draw_info_panel(); 350 draw_info_panel();
354#ifdef HAVE_LCD_BITMAP
355 rb->lcd_update(); 351 rb->lcd_update();
356#endif
357} 352}
358 353
359/* the main game loop */ 354/* the main game loop */
@@ -392,9 +387,7 @@ static bool flipit_loop(void)
392 cursor_pos = i; 387 cursor_pos = i;
393 flipit_toggle(); 388 flipit_toggle();
394 draw_cursor(); 389 draw_cursor();
395#ifdef HAVE_LCD_BITMAP
396 rb->lcd_update(); 390 rb->lcd_update();
397#endif
398 rb->sleep(HZ*2/3); 391 rb->sleep(HZ*2/3);
399 } 392 }
400 } 393 }
@@ -412,9 +405,7 @@ static bool flipit_loop(void)
412 cursor_pos = i; 405 cursor_pos = i;
413 flipit_toggle(); 406 flipit_toggle();
414 draw_cursor(); 407 draw_cursor();
415#ifdef HAVE_LCD_BITMAP
416 rb->lcd_update(); 408 rb->lcd_update();
417#endif
418 break; 409 break;
419 } 410 }
420 } 411 }
@@ -429,9 +420,7 @@ static bool flipit_loop(void)
429 if (!flipit_finished()) { 420 if (!flipit_finished()) {
430 flipit_toggle(); 421 flipit_toggle();
431 draw_cursor(); 422 draw_cursor();
432#ifdef HAVE_LCD_BITMAP
433 rb->lcd_update(); 423 rb->lcd_update();
434#endif
435 } 424 }
436 break; 425 break;
437 426
@@ -546,9 +535,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
546 spots[i]=1; 535 spots[i]=1;
547 draw_spot(i); 536 draw_spot(i);
548 } 537 }
549#ifdef HAVE_LCD_BITMAP
550 rb->lcd_update(); 538 rb->lcd_update();
551#endif
552 rb->sleep(HZ*3/2); 539 rb->sleep(HZ*3/2);
553 rb->srand(*rb->current_tick); 540 rb->srand(*rb->current_tick);
554 541