Text Fix: Erase in Display

Fixed erase in display code to work properly erasing the top half and bottom half of the screen or region.
This commit is contained in:
Peter Weingartner 2022-03-11 15:42:27 -05:00
parent a0c758590e
commit fa7a8a5a44
3 changed files with 8556 additions and 8556 deletions

View file

@ -517,7 +517,7 @@ void txt_clear(short screen, short mode) {
region.origin.x = old_region.origin.x;
region.origin.y = old_region.origin.y + cursor.y + 1;
region.size.width = old_region.size.width;
region.size.height = old_region.size.height - cursor.y;
region.size.height = old_region.size.height - cursor.y - 1;
txt_set_region(screen, &region);
txt_fill(screen, ' ');
@ -539,7 +539,7 @@ void txt_clear(short screen, short mode) {
// Clear the end of the line
region.origin.x = old_region.origin.x;
region.origin.y = old_region.origin.y + cursor.y;
region.size.width = cursor.x;
region.size.width = cursor.x + 1;
region.size.height = 1;
txt_set_region(screen, &region);
txt_fill(screen, ' ');

File diff suppressed because it is too large Load diff

11106
src/mapfile

File diff suppressed because it is too large Load diff