merge: add scrolling by wheel

This commit is contained in:
doryan committed 2024-09-11 19:46:30 +04:00
1 parent 36046d614f
commit 797fdcfa45
2 files changed
+12 -6

No files matched your search

+6 -3
View File
@@ -2714,9 +2714,12 @@ draw(void)
cx--;
drawregion(0, 0, term.col, term.row);
if (term.scr == 0) {
xdrawcursor(cx, term.c.y, term.line[term.c.y][cx], term.ocx, term.ocy, term.line[term.ocy][term.ocx]);
}
if (term.scr == 0)
xdrawcursor(cx, term.c.y, term.line[term.c.y][cx],
term.ocx, term.ocy, term.line[term.ocy][term.ocx],
term.line[term.ocy], term.col);
term.ocx = cx;
term.ocy = term.c.y;
xfinishdraw();