Screen refresh optimization
This commit is contained in:
parent
b7062fe8c3
commit
a49d62da90
@ -1349,17 +1349,12 @@ void IEclass::DelChar() {
|
|||||||
// Make sure the line type still is correct
|
// Make sure the line type still is correct
|
||||||
setlinetype(_thisline);
|
setlinetype(_thisline);
|
||||||
|
|
||||||
// Rewrap this line
|
wrapdel(&currline, &col, &row, false);
|
||||||
bool display = make_bool_not(row > maxrow / 2);
|
|
||||||
wrapdel(&currline, &col, &row, display);
|
if (((row-1) == minrow) && currline->prev)
|
||||||
if(display) {
|
refresh(currline->prev, minrow);
|
||||||
|
else
|
||||||
refresh(currline, row);
|
refresh(currline, row);
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Refresh the display
|
|
||||||
Line* _topline = findtopline();
|
|
||||||
refresh(_topline, minrow);
|
|
||||||
}
|
|
||||||
|
|
||||||
GFTRK(NULL);
|
GFTRK(NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user