summaryrefslogtreecommitdiff
path: root/dblbuf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-08 23:43:13 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-08 23:43:13 +0000
commit916c3fb0040ff697e2abfe3791e89512499f8ccb (patch)
tree39c1689ffed8e89100a25045329e999751b874bc /dblbuf.c
parent91f215a78c28986a12f4cd9d5e03ffea17b3363e (diff)
fbcon target: let the kernel do the key mapping for us...
this made it easy to fix vc switching and window resizing, so i'm fixing those in the same commit as well.
Diffstat (limited to 'dblbuf.c')
-rw-r--r--dblbuf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dblbuf.c b/dblbuf.c
index 79059f7..acd5105 100644
--- a/dblbuf.c
+++ b/dblbuf.c
@@ -127,6 +127,9 @@ void uudisp_refresh(struct uudisp *d, struct uuterm *t)
int h = t->h < d->h ? t->h : d->h;
int x1, x2, idx, y;
+ if (!b->active) return;
+ if (b->repaint) for (idx=0; idx<h; idx++) b->slices[idx].y = -1;
+
/* Clean up cursor first.. */
idx = t->rows[b->curs_y]->idx;
if ((unsigned)b->slices[idx].y < d->h)