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/spacerocks.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/spacerocks.c')
-rw-r--r-- | apps/plugins/spacerocks.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c index 2e7ccc0743..206d52aed8 100644 --- a/apps/plugins/spacerocks.c +++ b/apps/plugins/spacerocks.c | |||
@@ -1826,7 +1826,6 @@ static int spacerocks_menu(void) | |||
1826 | 1826 | ||
1827 | static int spacerocks_game_loop(void) | 1827 | static int spacerocks_game_loop(void) |
1828 | { | 1828 | { |
1829 | char str[20]; | ||
1830 | int button; | 1829 | int button; |
1831 | int end; | 1830 | int end; |
1832 | int position; | 1831 | int position; |
@@ -1861,8 +1860,7 @@ static int spacerocks_game_loop(void) | |||
1861 | break; | 1860 | break; |
1862 | 1861 | ||
1863 | case PAUSE_MODE: | 1862 | case PAUSE_MODE: |
1864 | rb->snprintf(str, sizeof(str), "score %d ", current_score); | 1863 | rb->lcd_putsxyf(1,LCD_HEIGHT-8, "score %d ", current_score); |
1865 | rb->lcd_putsxy(1,LCD_HEIGHT-8, str); | ||
1866 | rb->lcd_putsxy(CENTER_LCD_X - 15, | 1864 | rb->lcd_putsxy(CENTER_LCD_X - 15, |
1867 | CENTER_LCD_Y + CENTER_LCD_Y/2 - 4, "pause"); | 1865 | CENTER_LCD_Y + CENTER_LCD_Y/2 - 4, "pause"); |
1868 | draw_and_move_missiles(); | 1866 | draw_and_move_missiles(); |
@@ -1871,8 +1869,7 @@ static int spacerocks_game_loop(void) | |||
1871 | break; | 1869 | break; |
1872 | 1870 | ||
1873 | case PLAY_MODE: | 1871 | case PLAY_MODE: |
1874 | rb->snprintf(str, sizeof(str), "score %d ", current_score); | 1872 | rb->lcd_putsxyf(1, LCD_HEIGHT-8, "score %d ", current_score); |
1875 | rb->lcd_putsxy(1, LCD_HEIGHT-8, str); | ||
1876 | draw_and_move_missiles(); | 1873 | draw_and_move_missiles(); |
1877 | draw_lives(); | 1874 | draw_lives(); |
1878 | check_collisions(); | 1875 | check_collisions(); |
@@ -1880,11 +1877,10 @@ static int spacerocks_game_loop(void) | |||
1880 | break; | 1877 | break; |
1881 | 1878 | ||
1882 | case SHOW_LEVEL: | 1879 | case SHOW_LEVEL: |
1883 | rb->snprintf(str, sizeof(str), "score %d ", current_score); | 1880 | rb->lcd_putsxyf(1, LCD_HEIGHT-8, "score %d ", current_score); |
1884 | rb->lcd_putsxy(1, LCD_HEIGHT-8, str); | 1881 | rb->lcd_putsxyf(CENTER_LCD_X - 20, |
1885 | rb->snprintf(str, sizeof(str), "stage %d ", current_level); | 1882 | CENTER_LCD_Y + CENTER_LCD_Y/2 - 4, |
1886 | rb->lcd_putsxy(CENTER_LCD_X - 20, | 1883 | "stage %d ", current_level); |
1887 | CENTER_LCD_Y + CENTER_LCD_Y/2 - 4, str); | ||
1888 | draw_lives(); | 1884 | draw_lives(); |
1889 | draw_and_move_ship(); | 1885 | draw_and_move_ship(); |
1890 | show_level_timeout--; | 1886 | show_level_timeout--; |