[linux] memset correct area post-scroll

This commit is contained in:
nick black 2021-11-18 16:48:09 -05:00
parent 12ca5bb4fc
commit 2155ad32f9
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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);
}