some Windows curses adjustments dialog on startup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user