mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
[linux] memset correct area post-scroll
This commit is contained in:
parent
12ca5bb4fc
commit
2155ad32f9
@ -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…
Reference in New Issue
Block a user