Text Fix: insert and delete characters

Fixed issues with insert and delete of characters.
This commit is contained in:
Peter Weingartner 2022-03-11 15:46:41 -05:00
parent fa7a8a5a44
commit eae92ba7da
3 changed files with 14 additions and 14 deletions

View file

@ -643,7 +643,7 @@ void txt_insert(short screen, short count) {
region.size.width = old_region.size.width - cursor.x;
region.size.height = 1;
txt_set_region(screen, &region);
txt_scroll(screen, count, 0);
txt_scroll(screen, 0 - count, 0);
txt_set_region(screen, &old_region);
}
}
@ -673,7 +673,7 @@ void txt_delete(short screen, short count) {
region.size.width = old_region.size.width - cursor.x + count;
region.size.height = 1;
txt_set_region(screen, &region);
txt_scroll(screen, 0-count, 0);
txt_scroll(screen, count, 0);
txt_set_region(screen, &old_region);
}
}

View file

@ -1832,17 +1832,17 @@ S22402E32041EF001C2F08300248C02F004EB90002DCEC4FEF001860563F6F000C0014302FE0
S22402E340000ED06F000A3F4000163F6F001000183F7C0001001A41EF00142F08300248C069
S22402E3602F004EB90002DCEC48780020300248C02F004EB90002E03441EF001C2F0830027B
S22402E38048C02F004EB90002DCEC4FEF00184CDF000C4FEF00144E754FEFFFEC48E7300044
S22402E3A0362F0026342F00224A436F00008C41EF00082F08300248C02F004EB90002DE10EF
S22402E3A0362F0026342F00224A436F00008E41EF00082F08300248C02F004EB90002DE10ED
S22402E3C041EF00142F08300248C02F004EB90002DCA8302F001CD06F00183F400024302FF1
S22402E3E0001ED06F001A3F400026302F0020906F00183F4000283F7C0001002A41EF002483
S22402E4002F08300248C02F004EB90002DCEC42A7300348C02F00300248C02F004EB90002BF
S22402E420DFE841EF00302F08300248C02F004EB90002DCEC4FEF002C4CDF000C4FEF00144A
S22402E4404E754E714FEFFFE848E73000362F0026342F002A6F0000A041EF00082F083003E6
S22402E4002F08300248C02F004EB90002DCEC42A7300348C044802F00300248C02F004EB9FD
S22402E4200002DFE841EF00302F08300248C02F004EB90002DCEC4FEF002C4CDF000C4FEF5C
S22402E44000144E754FEFFFE848E73000362F0026342F002A6F00009E41EF00082F08300393
S22402E46048C02F004EB90002DE1041EF00142F08300348C02F004EB90002DCA84FEF0010A7
S22402E480B46F00086F04342F0008302F000CD06F000890423F400014302F000ED06F000A9F
S22402E4A03F400016302F0010906F0008D0423F4000183F7C0001001A41EF00142F0830031D
S22402E4C048C02F004EB90002DCEC42A7300248C044802F00300348C02F004EB90002DFE8DD
S22402E4E041EF00202F08300348C02F004EB90002DCEC4FEF001C4CDF000C4FEF00184E75A9
S22402E4C048C02F004EB90002DCEC42A7300248C02F00300348C02F004EB90002DFE841EF71
S22402E4E000202F08300348C02F004EB90002DCEC4FEF001C4CDF000C4FEF00184E750000D9
S22402E500302F00066608203CFEC023F86006203CFEC022F84E754E7148E73020362F0012DA
S22402E520342F0016300348C02F004EB90002E5002440584F4A8A6732103C0080802A000312
S22402E5401540000370003002C0BC000000FF148070003002E080C0BC000000FF15400001D8

View file

@ -59,7 +59,7 @@ Files:
ps2.o: CODE 2aeb4(195c), DATA 42a78(5c), BSS 46e98(234) hex
rtc.o: CODE 2c810(8d0), BSS 470cc(4) hex
sdc.o: CODE 2d0e0(5ac), DATA 42ad4(5) hex
txt_screen.o: CODE 2d68c(e74), BSS 470d0(186) hex
txt_screen.o: CODE 2d68c(e72), BSS 470d0(186) hex
uart.o: CODE 2e500(214) hex
fdc.o: CODE 2e714(16ec), DATA 42adc(16) hex
kbd_mo.o: CODE 2fe00(600), DATA 42af4(304), BSS 47258(224) hex
@ -131,7 +131,7 @@ Section mapping (numbers in hex):
0002aeb4 - 0002c810 ps2.o(CODE)
0002c810 - 0002d0e0 rtc.o(CODE)
0002d0e0 - 0002d68c sdc.o(CODE)
0002d68c - 0002e500 txt_screen.o(CODE)
0002d68c - 0002e4fe txt_screen.o(CODE)
0002e500 - 0002e714 uart.o(CODE)
0002e714 - 0002fe00 fdc.o(CODE)
0002fe00 - 00030400 kbd_mo.o(CODE)
@ -3896,14 +3896,14 @@ Symbols of text:
0x0002e38e l227: local reloc, size 0
0x0002e398 _txt_insert: global reloc, size 0
0x0002e3ae l237: local reloc, size 0
0x0002e438 l238: local reloc, size 0
0x0002e438 l235: local reloc, size 0
0x0002e43a l238: local reloc, size 0
0x0002e43a l235: local reloc, size 0
0x0002e444 _txt_delete: global reloc, size 0
0x0002e458 l244: local reloc, size 0
0x0002e486 l246: local reloc, size 0
0x0002e48a l247: local reloc, size 0
0x0002e4f6 l242: local reloc, size 0
0x0002e4f6 l245: local reloc, size 0
0x0002e4f4 l242: local reloc, size 0
0x0002e4f4 l245: local reloc, size 0
0x0002e500 _uart_get_base: global reloc, size 0
0x0002e506 l3: local reloc, size 0
0x0002e50e l4: local reloc, size 0