diff options
author | Rich Felker <dalias@aerifal.cx> | 2007-03-06 03:36:28 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2007-03-06 03:36:28 +0000 |
commit | 84ed12a0dca620f70d46977a43eda355f6261d51 (patch) | |
tree | c0104eff4a7648633395ca0e1a610abdccc00628 | |
parent | 0d4a13cd8798bf436d2f10ab929af92dd137aef0 (diff) |
ligature support
-rw-r--r-- | term.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -25,6 +25,8 @@ static void dirty(struct uuterm *t, int y, int x1, int len) { int x2 = x1 + len - 1; struct uurow *r = t->rows[y]; + /* account for potentially affected ligatures */ + if (x1) x1--; if (x2<t->w-1) x2++; //r->x1 += (x1 - r->x1) & (x1 - r->x1)>>8*sizeof(int)-1; //r->x2 += (x2 - r->x2) & (r->x2 - x2)>>8*sizeof(int)-1; if (x1 < r->x1) r->x1 = x1; |