Skip to content
Snippets Groups Projects
Commit 516ad228 authored by deuce's avatar deuce
Browse files

Adjust the window size before initializing UIFC in the duplicate

callbacks.
parent 9cc96539
No related branches found
No related tags found
No related merge requests found
......@@ -970,6 +970,7 @@ BOOL zmodem_duplicate_callback(void *cbdata, void *zm_void)
gettextinfo(&txtinfo);
buf=(char *)alloca(txtinfo.screenheight*txtinfo.screenwidth*2);
gettext(1,1,txtinfo.screenwidth,txtinfo.screenheight,buf);
window(1, 1, txtinfo.screenwidth, txtinfo.screenheight);
init_uifc(FALSE, FALSE);
while(loop) {
......@@ -999,6 +1000,7 @@ BOOL zmodem_duplicate_callback(void *cbdata, void *zm_void)
}
uifcbail();
window(txtinfo.winleft, txtinfo.wintop, txtinfo.winright, txtinfo.winbottom);
puttext(1,1,txtinfo.screenwidth,txtinfo.screenheight,buf);
return(ret);
}
......@@ -1316,6 +1318,8 @@ BOOL xmodem_duplicate(xmodem_t *xm, struct bbslist *bbs, char *path, size_t path
gettextinfo(&txtinfo);
buf=(char *)alloca(txtinfo.screenheight*txtinfo.screenwidth*2);
gettext(1,1,txtinfo.screenwidth,txtinfo.screenheight,buf);
window(1, 1, txtinfo.screenwidth, txtinfo.screenheight);
init_uifc(FALSE, FALSE);
while(loop) {
......@@ -1348,6 +1352,7 @@ BOOL xmodem_duplicate(xmodem_t *xm, struct bbslist *bbs, char *path, size_t path
uifcbail();
puttext(1,1,txtinfo.screenwidth,txtinfo.screenheight,buf);
window(txtinfo.winleft, txtinfo.wintop, txtinfo.winright, txtinfo.winbottom);
return(ret);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment