diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/speedread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugins/speedread.c b/apps/plugins/speedread.c index c80839e4a9..b6fce77de1 100644 --- a/apps/plugins/speedread.c +++ b/apps/plugins/speedread.c @@ -147,9 +147,8 @@ static void cleanup(void) /* returns height of drawn area */ static int reset_drawing(long proportion) /* 16.16 fixed point, goes from 0 --> 1 over time */ { - int h = -1, w; - if(h < 0) - rb->lcd_getstringsize("X", &w, &h); + int w, h; + rb->lcd_getstringsize("X", &w, &h); /* clear word area */ rb->lcd_set_foreground(BACKGROUND_COLOR); |