WINGs/wfont_wl: fix text y-offset in draw_image_string
Don't add ascent offset — pango_ft2_render_layout renders from the top of the layout, not from the baseline. The extra ascent was pushing text below the visible area of the text field.
This commit is contained in:
parent
1037fc0630
commit
ed2f825ca0
|
|
@ -199,7 +199,7 @@ wl_draw_image_string(void *sctx, void *handle, WMDrawable d,
|
|||
pixman_image_unref(bsolid);
|
||||
|
||||
/* Draw text on top. */
|
||||
wl_draw_string(sctx, handle, d, x, y + ((FontHandleWL *)handle)->ascent,
|
||||
wl_draw_string(sctx, handle, d, x, y,
|
||||
tr, tg, tb, ta, tpix, text, len);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue