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

Set up CP437 mode before zmodem auto up/download

Fixes use of system font during up/downloads when auto-started.

Ticket 194
parent 23b26a23
No related branches found
No related tags found
No related merge requests found
Pipeline #8437 passed
...@@ -4284,12 +4284,22 @@ doterm(struct bbslist *bbs) ...@@ -4284,12 +4284,22 @@ doterm(struct bbslist *bbs)
/* Have full sequence (Assumes /* Have full sequence (Assumes
* zrinit and zrqinit are same * zrinit and zrqinit are same
* length */ * length */
struct ciolib_screen *savscrn;
WRITE_OUTBUF(); WRITE_OUTBUF();
suspend_rip(true); suspend_rip(true);
savscrn = savescreen();
set_modepalette(palettes[COLOUR_PALETTE]);
setfont(0, false, 1);
setfont(0, false, 2);
setfont(0, false, 3);
setfont(0, false, 4);
setvideoflags(getvideoflags() & (CIOLIB_VIDEO_NOBLINK | CIOLIB_VIDEO_BGBRIGHT));
if (!strcmp((char *)zrqbuf, (char *)zrqinit)) if (!strcmp((char *)zrqbuf, (char *)zrqinit))
zmodem_download(bbs); zmodem_download(bbs);
else else
begin_upload(bbs, true, inch); begin_upload(bbs, true, inch);
restorescreen(savscrn);
freescreen(savscrn);
setup_mouse_events(&ms); setup_mouse_events(&ms);
suspend_rip(false); suspend_rip(false);
zrqbuf[0] = 0; zrqbuf[0] = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment