* addch()をちょっと修正.グリフの幅は完全にフォント依存にした(グリフがないと強制的に幅0)

This commit is contained in:
uobikiemukot 2012-06-24 22:39:39 +09:00 committed by uobikiemukot
parent 4059a1d3e1
commit 8f64cfc438

View file

@ -138,8 +138,7 @@ void addch(terminal * term, u32 code)
{
glyph_t *gp;
if (code == DEL /* ignore DEL */
|| code >= UCS_CHARS /* only handle UCS2 (<= 0xFFFF) */
if (code >= UCS_CHARS /* only handle UCS2 (<= 0xFFFF) */
|| term->fonts[code] == NULL) /* glyph not found */
return;