some Windows curses adjustments dialog on startup

This commit is contained in:
nhmall
2026-05-22 12:21:42 -04:00
parent 3f837939ba
commit 4c7f2dfaac
3 changed files with 32 additions and 12 deletions
+9
View File
@@ -303,7 +303,9 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
#ifdef WINCHAIN
commit_windowchain();
#endif
init_nhwindows(&argc, argv);
#ifdef TTY_GRAPHICS
if WINDOWPORT(tty) {
int i;
@@ -1265,7 +1267,11 @@ other_self_recover_prompt(void)
int c, ci, ct, pl, retval = 0;
boolean ismswin = WINDOWPORT(mswin),
iscurses = WINDOWPORT(curses);
int save_popupdialog = iflags.wc_popup_dialog;
if (WINDOWPORT(curses)) {
iflags.wc_popup_dialog = TRUE;
}
pl = 1;
c = 'n';
ct = 0;
@@ -1316,6 +1322,9 @@ other_self_recover_prompt(void)
else
retval = 1; /* yes, do recover the old game */
}
if (WINDOWPORT(curses)) {
iflags.wc_popup_dialog = save_popupdialog;
}
return retval;
}