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

Fix LCF mode

When wrapping due to a character being written, be sure to move to
the next line before writing the new character.

LCF mode was badly broken, so I guess nobody was using it?
parent d3a2fa5a
No related branches found
No related tags found
No related merge requests found
Pipeline #8888 failed
...@@ -5137,7 +5137,7 @@ ctputs(struct cterminal *cterm, char *buf) ...@@ -5137,7 +5137,7 @@ ctputs(struct cterminal *cterm, char *buf)
default: default:
if ((cterm->last_column_flag & (CTERM_LCF_ENABLED | CTERM_LCF_SET)) == (CTERM_LCF_ENABLED | CTERM_LCF_SET)) { if ((cterm->last_column_flag & (CTERM_LCF_ENABLED | CTERM_LCF_SET)) == (CTERM_LCF_ENABLED | CTERM_LCF_SET)) {
if (cx == cterm->right_margin || cx == CURR_MAXX) { if (cx == cterm->right_margin || cx == CURR_MAXX) {
advance_char(cterm, &cx, &cy, 0); advance_char(cterm, &cx, &cy, 1);
clear_lcf(cterm); clear_lcf(cterm);
} }
} }
......
...@@ -12,6 +12,7 @@ Fix crash when first ANSI music note played is in background ...@@ -12,6 +12,7 @@ Fix crash when first ANSI music note played is in background
Fix binary mode tracking, which could cause issues after transfers Fix binary mode tracking, which could cause issues after transfers
Fix SDL and GDI issue with textmode() when font is changed Fix SDL and GDI issue with textmode() when font is changed
Fix manual upload screen when not in cp437+ANSI mode Fix manual upload screen when not in cp437+ANSI mode
Fix loss of character when performing LCF wrap
Version 1.6 Version 1.6
------------ ------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment