version 1.47, 2011/03/07 23:46:27 |
version 1.48, 2011/03/26 19:07:33 |
|
|
* If this is a wide character and there is no room on the screen, for |
* If this is a wide character and there is no room on the screen, for |
* the entire character, don't print it. |
* the entire character, don't print it. |
*/ |
*/ |
if (width > 1 && (width > screen_size_x(s) || |
if (!(s->mode & MODE_WRAP) |
(s->cx != screen_size_x(s) && s->cx > screen_size_x(s) - width))) |
&& (width > 1 && (width > screen_size_x(s) || |
|
(s->cx != screen_size_x(s) |
|
&& s->cx > screen_size_x(s) - width)))) |
return; |
return; |
|
|
/* |
/* |
|
|
} |
} |
|
|
/* Sanity checks. */ |
/* Sanity checks. */ |
if (((s->mode & MODE_WRAP) && s->cx > screen_size_x(s) - 1) |
if (((s->mode & MODE_WRAP) && s->cx > screen_size_x(s) - width) |
|| s->cy > screen_size_y(s) - 1) |
|| s->cy > screen_size_y(s) - width) |
return; |
return; |
|
|
/* Handle overwriting of UTF-8 characters. */ |
/* Handle overwriting of UTF-8 characters. */ |