diff --git a/changelog.txt b/changelog.txt index 9ec4c4a5..4fe38a35 100644 --- a/changelog.txt +++ b/changelog.txt @@ -14,6 +14,7 @@ FEATURE: Added GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE configuration option FEATURE: Added GDISP_IMAGE_PNG_FILE_BUFFER_SIZE configuration option FEATURE: Added GDISP_IMAGE_PNG_Z_BUFFER_SIZE configuration option FEATURE: Added GDISP_IMAGE_GIF_BLIT_BUFFER_SIZE configuration option +FIX: Fixed extra dots when drawing anti-aliased fonts with wordwrap *** Release 2.7 *** diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index 11d5c6c9..e1ee6951 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -3486,7 +3486,7 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co mf_wordwrap(font, cx, str, mf_countline_callback, &nbrLines); wrapParameters.y += (cy+1 - nbrLines*font->height)/2; - mf_wordwrap(font, cx, str, mf_fillline_callback, &wrapParameters); + mf_wordwrap(font, cx, str, mf_drawline_callback, &wrapParameters); #else y += (cy+1 - font->height)/2; mf_render_aligned(font, x, y, justify, str, 0, drawcharglyph, g);