Fixing word-wrap
This commit is contained in:
parent
69de17687c
commit
2dcd3509c9
@ -3174,8 +3174,7 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
|
||||
|
||||
mf_render_aligned(wrapParameters->font, wrapParameters->x, wrapParameters->y, wrapParameters->justify, line, count, fillcharglyph, wrapParameters->g);
|
||||
|
||||
wrapParameters->y += wrapParameters->font->baseline_y;
|
||||
|
||||
wrapParameters->y += wrapParameters->font->line_height;
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
@ -172,8 +172,8 @@ static void tune_lines(struct linelen_s *current, struct linelen_s *previous,
|
||||
void mf_wordwrap(const struct mf_font_s *font, int16_t width,
|
||||
mf_str text, mf_line_callback_t callback, void *state)
|
||||
{
|
||||
struct linelen_s current;
|
||||
struct linelen_s previous;
|
||||
struct linelen_s current = { 0 };
|
||||
struct linelen_s previous = { 0 };
|
||||
bool full;
|
||||
|
||||
current.start = text;
|
||||
|
Loading…
Reference in New Issue
Block a user