diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
commit | ab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch) | |
tree | 4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/pacbox/pacbox.c | |
parent | 8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff) | |
download | rockbox-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/pacbox/pacbox.c')
-rw-r--r-- | apps/plugins/pacbox/pacbox.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/plugins/pacbox/pacbox.c b/apps/plugins/pacbox/pacbox.c index db25b1c0f1..e942841a19 100644 --- a/apps/plugins/pacbox/pacbox.c +++ b/apps/plugins/pacbox/pacbox.c | |||
@@ -367,7 +367,6 @@ static void stop_sound(void) | |||
367 | static int gameProc( void ) | 367 | static int gameProc( void ) |
368 | { | 368 | { |
369 | int fps; | 369 | int fps; |
370 | char str[80]; | ||
371 | int status; | 370 | int status; |
372 | long end_time; | 371 | long end_time; |
373 | int frame_counter = 0; | 372 | int frame_counter = 0; |
@@ -469,9 +468,7 @@ static int gameProc( void ) | |||
469 | 468 | ||
470 | if (settings.showfps) { | 469 | if (settings.showfps) { |
471 | fps = (video_frames*HZ*100) / (*rb->current_tick-start_time); | 470 | fps = (video_frames*HZ*100) / (*rb->current_tick-start_time); |
472 | rb->snprintf(str,sizeof(str),"%d.%02d / %d fps ", | 471 | rb->lcd_putsxyf(0,0,"%d.%02d / %d fps ",fps/100,fps%100,FPS); |
473 | fps/100,fps%100,FPS); | ||
474 | rb->lcd_putsxy(0,0,str); | ||
475 | } | 472 | } |
476 | 473 | ||
477 | #if !defined(HAVE_LCD_MODES) || \ | 474 | #if !defined(HAVE_LCD_MODES) || \ |