summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2017-07-26 23:27:19 -0400
committerFranklin Wei <git@fwei.tk>2017-07-27 19:09:50 -0400
commit1a5149a0aea30c5701e5bd2a1c219f7e2a2b9575 (patch)
tree3565720ed8b9943953aa271cefd7b93671b56006 /apps/plugins/puzzles
parentaa7b168fd7268d557af84a70ba155e69048d9e59 (diff)
puzzles: tweak text positioning
Diffstat (limited to 'apps/plugins/puzzles')
-rw-r--r--apps/plugins/puzzles/rockbox.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index b193a85430..379b4230df 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;