diff options
| author | Franklin Wei <me@fwei.tk> | 2017-07-26 23:27:19 -0400 |
|---|---|---|
| committer | Franklin Wei <me@fwei.tk> | 2017-07-27 00:03:09 -0400 |
| commit | f27392997c16d0eba964a526adade17693af5ce6 (patch) | |
| tree | d5ac8061c4fe540095bbbe6329cde3475feb7dca /apps/plugins | |
| parent | 6c18083749fd44b47fa8f1628f6fc48b661291ab (diff) | |
| download | rockbox-f27392997c16d0eba964a526adade17693af5ce6.zip rockbox-f27392997c16d0eba964a526adade17693af5ce6.tar.gz rockbox-f27392997c16d0eba964a526adade17693af5ce6.tar.bz2 rockbox-f27392997c16d0eba964a526adade17693af5ce6.tar.xz | |
puzzles: tweak text positioning
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/puzzles/rockbox.c | 6 |
1 files changed, 1 insertions, 5 deletions
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; |