summaryrefslogtreecommitdiff
path: root/framebuffer/fbtk/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'framebuffer/fbtk/text.c')
-rw-r--r--framebuffer/fbtk/text.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/framebuffer/fbtk/text.c b/framebuffer/fbtk/text.c
index 936f3d213..4749991bb 100644
--- a/framebuffer/fbtk/text.c
+++ b/framebuffer/fbtk/text.c
@@ -129,7 +129,12 @@ fb_redraw_text(fbtk_widget_t *widget, fbtk_callback_info *cbi )
if (widget->u.text.text != NULL) {
int x = bbox.x0 + padding;
- int y = bbox.y0 + ((fh * 3) / 4) + padding;
+ int y = bbox.y0 + ((fh * 3 + 2) / 4) + padding;
+
+#ifdef FB_USE_FREETYPE
+ /* Freetype renders text higher */
+ y += 1;
+#endif
if (caret && widget->width - padding - padding < caret_x) {
scroll = (widget->width - padding - padding) - caret_x;