summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles')
-rw-r--r--apps/plugins/puzzles/rockbox.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index 0216975614..cf0c6cc21b 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -550,11 +550,13 @@ static void rb_draw_text(void *handle, int x, int y, int fonttype,
550{ 550{
551 (void) fontsize; 551 (void) fontsize;
552 552
553 LOGF("rb_draw_text(%d %d \"%s\" size=%d)", x, y, text, fontsize);
554
553 rb_color(color); 555 rb_color(color);
554 rb_setfont(fonttype, fontsize); /* size will be clamped if too large */ 556 rb_setfont(fonttype, fontsize); /* size will be clamped if too large */
555 557
556 int w, h; 558 int w, h;
557 rb->lcd_getstringsize(text, &w, &h); 559 rb->font_getstringsize(text, &w, &h, cur_font);
558 560
559 if(align & ALIGN_VNORMAL) 561 if(align & ALIGN_VNORMAL)
560 y -= h; 562 y -= h;
@@ -566,10 +568,10 @@ static void rb_draw_text(void *handle, int x, int y, int fonttype,
566 else if(align & ALIGN_HRIGHT) 568 else if(align & ALIGN_HRIGHT)
567 x -= w; 569 x -= w;
568 570
571 LOGF("calculated origin: (%d, %d) size: (%d, %d)", x, y, w, h);
572
569 if(!zoom_enabled) 573 if(!zoom_enabled)
570 { 574 {
571 LOGF("rb_draw_text(%d %d %s)", x, y, text);
572
573 offset_coords(&x, &y); 575 offset_coords(&x, &y);
574 576
575 rb->lcd_set_drawmode(DRMODE_FG); 577 rb->lcd_set_drawmode(DRMODE_FG);