summaryrefslogtreecommitdiff
path: root/apps/plugins/stopwatch.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-17 10:31:31 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit658026e6267277b27d297c481728f74d160a8481 (patch)
tree915a9d2bb48469bdd5b9127dc19a61f230721a6c /apps/plugins/stopwatch.c
parent8cb555460ff79e636a7907fb2589e16db98c8600 (diff)
downloadrockbox-658026e6267277b27d297c481728f74d160a8481.tar.gz
rockbox-658026e6267277b27d297c481728f74d160a8481.zip
[4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice.
Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a
Diffstat (limited to 'apps/plugins/stopwatch.c')
-rw-r--r--apps/plugins/stopwatch.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/plugins/stopwatch.c b/apps/plugins/stopwatch.c
index c3fa3e15dd..6fca37d06f 100644
--- a/apps/plugins/stopwatch.c
+++ b/apps/plugins/stopwatch.c
@@ -23,11 +23,7 @@
23 23
24 24
25 25
26#ifdef HAVE_LCD_BITMAP
27#define TIMER_Y 1 26#define TIMER_Y 1
28#else
29#define TIMER_Y 0
30#endif
31 27
32#define LAP_Y TIMER_Y+1 28#define LAP_Y TIMER_Y+1
33#define MAX_LAPS 64 29#define MAX_LAPS 64
@@ -481,14 +477,10 @@ enum plugin_status plugin_start(const void* parameter)
481 477
482 (void)parameter; 478 (void)parameter;
483 479
484#ifdef HAVE_LCD_BITMAP
485 int h; 480 int h;
486 rb->lcd_setfont(FONT_UI); 481 rb->lcd_setfont(FONT_UI);
487 rb->lcd_getstringsize("M", NULL, &h); 482 rb->lcd_getstringsize("M", NULL, &h);
488 lines = (LCD_HEIGHT / h) - (LAP_Y); 483 lines = (LCD_HEIGHT / h) - (LAP_Y);
489#else
490 lines = 1;
491#endif
492 484
493 load_stopwatch(); 485 load_stopwatch();
494 486