summaryrefslogtreecommitdiff
path: root/apps/plugins/rocklife.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rocklife.c')
-rw-r--r--apps/plugins/rocklife.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/rocklife.c b/apps/plugins/rocklife.c
index afe442f989..8ae5cdb120 100644
--- a/apps/plugins/rocklife.c
+++ b/apps/plugins/rocklife.c
@@ -90,7 +90,6 @@ unsigned char grid_b[GRID_W][GRID_H];
90int generation = 0; 90int generation = 0;
91int population = 0; 91int population = 0;
92int status_line = 0; 92int status_line = 0;
93char buf[30];
94 93
95 94
96static inline bool is_valid_cell(int x, int y) { 95static inline bool is_valid_cell(int x, int y) {
@@ -308,11 +307,10 @@ static void show_grid(char *pgrid){
308 } 307 }
309 } 308 }
310 if(status_line){ 309 if(status_line){
311 rb->snprintf(buf, sizeof(buf), "g:%d p:%d", generation, population);
312#if LCD_DEPTH > 1 310#if LCD_DEPTH > 1
313 rb->lcd_set_foreground( LCD_BLACK ); 311 rb->lcd_set_foreground( LCD_BLACK );
314#endif 312#endif
315 rb->lcd_puts(0, 0, buf); 313 rb->lcd_putsf(0, 0, "g:%d p:%d", generation, population);
316 } 314 }
317 rb->lcd_update(); 315 rb->lcd_update();
318} 316}