diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-10 18:28:59 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-10 18:28:59 +0000 |
commit | 6bab5568278cb437efb6fb17a4a1b494e05b9549 (patch) | |
tree | 6d714f2cf5fc7fad0858ad5682a6328e0dbb8d78 /atari/plot/font_vdi.c | |
parent | 3148f8a6c34c4d41652132595fe0fce99750cc5a (diff) | |
download | netsurf-6bab5568278cb437efb6fb17a4a1b494e05b9549.tar.gz netsurf-6bab5568278cb437efb6fb17a4a1b494e05b9549.tar.bz2 |
Make comaptible with new nsfont_split expectation. Untested, but code is same as framebuffer front end, so should work.
Diffstat (limited to 'atari/plot/font_vdi.c')
-rwxr-xr-x | atari/plot/font_vdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/atari/plot/font_vdi.c b/atari/plot/font_vdi.c index 4ebab24fb..340759f02 100755 --- a/atari/plot/font_vdi.c +++ b/atari/plot/font_vdi.c @@ -164,7 +164,7 @@ static int str_split( FONT_PLOTTER self, const plot_font_style_t * fstyle, const last_space_idx = nxtchr;
} *actual_x += cellw; - if (*actual_x > x) { + if (*actual_x > x && last_space_idx != 0) { *actual_x = last_space_x; *char_offset = last_space_idx; //printf("at: %s\n", lstr); |