diff options
-rw-r--r-- | src/text.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -116,6 +116,9 @@ text_render(struct text *text, struct font *font, png_bytepp rows) ++string; } } else if (*string == '\n') { + for (; col < text->width; ++col) { + font_render(font, &fg,&bg, ' ', rows, row, col); + } col = 0; ++row; ++string; @@ -125,6 +128,9 @@ text_render(struct text *text, struct font *font, png_bytepp rows) ++string; } } + for (; col < text->width; ++col) { + font_render(font, &fg, &bg, ' ', rows, row, col); + } } struct text * |