From f27392997c16d0eba964a526adade17693af5ce6 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Wed, 26 Jul 2017 23:27:19 -0400 Subject: puzzles: tweak text positioning --- apps/plugins/puzzles/rockbox.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c index b193a85..379b423 100644 --- a/apps/plugins/puzzles/rockbox.c +++ b/apps/plugins/puzzles/rockbox.c @@ -277,14 +277,10 @@ static void rb_draw_text(void *handle, int x, int y, int fonttype, int w, h; rb->lcd_getstringsize(text, &w, &h); - static int cap_h = -1; - if(cap_h < 0) - rb->lcd_getstringsize("X", NULL, &cap_h); - if(align & ALIGN_VNORMAL) y -= h; else if(align & ALIGN_VCENTRE) - y -= cap_h / 2; + y -= h / 2; if(align & ALIGN_HCENTRE) x -= w / 2; -- cgit v1.1