[linux] memset correct area post-scroll

dankamongmen/windows-tester
nick black 3 years ago
parent 12ca5bb4fc
commit 2155ad32f9
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

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

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

Loading…
Cancel
Save