summaryrefslogtreecommitdiff
path: root/apps/plugins/clix.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:45 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:45 +0000
commitab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch)
tree4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/clix.c
parent8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff)
downloadrockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.tar.gz
rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.zip
plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/clix.c')
-rw-r--r--apps/plugins/clix.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c
index 0bdf693f54..9eda97a1d9 100644
--- a/apps/plugins/clix.c
+++ b/apps/plugins/clix.c
@@ -408,23 +408,19 @@ static void clix_draw_cell(struct clix_game_state_t* state, const int x, const i
408static void clix_draw(struct clix_game_state_t* state) 408static void clix_draw(struct clix_game_state_t* state)
409{ 409{
410 int i,j; 410 int i,j;
411 char str[30];
412 411
413 /* Clear screen */ 412 /* Clear screen */
414 rb->lcd_clear_display(); 413 rb->lcd_clear_display();
415 rb->lcd_set_foreground( LCD_WHITE); 414 rb->lcd_set_foreground( LCD_WHITE);
416 415
417 rb->lcd_putsxy( MARGIN, MARGIN, "Score:"); 416 rb->lcd_putsxy( MARGIN, MARGIN, "Score:");
418 rb->snprintf( str, sizeof(str), "%d", state->score); 417 rb->lcd_putsxyf( 43, MARGIN, "%d", state->score);
419 rb->lcd_putsxy( 43, MARGIN, str);
420#if LCD_WIDTH <= 100 418#if LCD_WIDTH <= 100
421 rb->lcd_putsxy( 75, MARGIN, "L:"); 419 rb->lcd_putsxy( 75, MARGIN, "L:");
422 rb->snprintf( str, sizeof(str), "%d", state->level); 420 rb->lcd_putsxyf( 90, MARGIN, "%d", state->level);
423 rb->lcd_putsxy( 90, MARGIN, str);
424#else 421#else
425 rb->lcd_putsxy( 75, MARGIN, "Level:"); 422 rb->lcd_putsxy( 75, MARGIN, "Level:");
426 rb->snprintf( str, sizeof(str), "%d", state->level); 423 rb->lcd_putsxyf( 113, MARGIN, "%d", state->level);
427 rb->lcd_putsxy( 113, MARGIN, str);
428#endif 424#endif
429 for( i = 0; i < BOARD_WIDTH; ++i) 425 for( i = 0; i < BOARD_WIDTH; ++i)
430 { 426 {