Skip to content
Snippets Groups Projects
Commit 5abc5cda authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Ensure cleared block in in scrolling region

Do not clear at the current X/Y on scroll (derp)
parent 2f33ee73
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1577 passed
......@@ -1172,8 +1172,7 @@ scrolldown(struct cterminal *cterm)
coord_conv_xy(cterm, CTERM_COORD_TERM, CTERM_COORD_SCREEN, &maxx, &maxy);
MOVETEXT(minx, miny, maxx, maxy - 1, minx, miny + 1);
CURR_XY(&x, &y);
cterm_gotoxy(cterm, TERM_MINX, TERM_MINY);
cterm_clrblk(cterm, x, y, x + TERM_MAXX - 1, y);
cterm_clrblk(cterm, minx, miny, minx + TERM_MAXX - 1, miny);
GOTOXY(x, y);
}
......@@ -1205,8 +1204,7 @@ scrollup(struct cterminal *cterm)
}
MOVETEXT(minx, miny + 1, maxx, maxy, minx, miny);
CURR_XY(&x, &y);
cterm_gotoxy(cterm, TERM_MINX, TERM_MAXY);
cterm_clrblk(cterm, x, y, x + TERM_MAXX - 1, y);
cterm_clrblk(cterm, minx, maxy, minx + TERM_MAXX - 1, maxy);
GOTOXY(x, y);
}
......@@ -4393,7 +4391,7 @@ cterm_reset(struct cterminal *cterm)
struct cterminal* CIOLIBCALL cterm_init(int height, int width, int xpos, int ypos, int backlines, int backcols, struct vmem_cell *scrollback, int emulation)
{
char *revision="$Revision: 1.313 $";
char *revision="$Revision: 1.314 $";
char *in;
char *out;
struct cterminal *cterm;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment