diff --git a/src/lib/linux.c b/src/lib/linux.c index cbda56f6a..6d84529c0 100644 --- a/src/lib/linux.c +++ b/src/lib/linux.c @@ -195,7 +195,7 @@ void fbcon_scroll(const struct ncpile* p, tinfo* ti, int rows){ unsigned tocopy = rowbytes * (totalrows - srows); memmove(targ, src, tocopy); targ += tocopy; - memset(targ, 0, srows * rowbytes); + memset(src, 0, (totalrows - srows) * rowbytes); } // each row is a contiguous set of bits, starting at the msb diff --git a/src/lib/render.c b/src/lib/render.c index ed74ae749..a538e63ed 100644 --- a/src/lib/render.c +++ b/src/lib/render.c @@ -998,6 +998,7 @@ rasterize_scrolls(const ncpile* p, fbuf* f){ p->nc->rstate.logendx = 0; } } + // FIXME probably need this to take place at the end of cycle... if(p->nc->tcache.pixel_scroll){ p->nc->tcache.pixel_scroll(p, &p->nc->tcache, scrolls); }