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:
parent
a0c758590e
commit
fa7a8a5a44
|
@ -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, ®ion);
|
||||
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, ®ion);
|
||||
txt_fill(screen, ' ');
|
||||
|
|
6002
src/foenixmcp.s68
6002
src/foenixmcp.s68
File diff suppressed because it is too large
Load diff
11106
src/mapfile
11106
src/mapfile
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue