terminal: fix off-by-one bug

Fixes #1215.
This commit is contained in:
Christian Prochaska 2014-07-22 16:09:24 +02:00 committed by Norman Feske
parent 72bb821990
commit 2da020b688
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ static void convert_char_array_to_pixels(Cell_array<Char_cell> *cell_array,
unsigned glyph_width = regular_font.wtab[ascii];
if (x + glyph_width >= fb_width) break;
if (x + glyph_width > fb_width) break;
Color fg_color = foreground_color(cell);
Color bg_color = background_color(cell);