Support EDIT_GETLIN for win32

... but only without popup_dialog
This commit is contained in:
Pasi Kallinen
2018-03-27 20:22:34 +03:00
parent 94ad7512a6
commit a2f6a7bec9
2 changed files with 7 additions and 1 deletions

View File

@@ -831,7 +831,8 @@ win32gui: save and load map colors from registry
X11: add new character selection dialog, and obey player_selection:dialog
unix: reduce makefile verbosity by default
win32gui: new player selection dialog
tty, x11, qt4: compile-time option to allow some prompts remember the input
tty, X11, qt4, win32gui: compile-time option to allow some prompts remember
the input
NetHack Community Patches (or Variation) Included

View File

@@ -1657,8 +1657,13 @@ mswin_getlin(const char *question, char *input)
mswin_clear_nhwindow(WIN_MESSAGE);
mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, question, 0);
mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, " ", 1);
#ifdef EDIT_GETLIN
mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, input, 0);
len = strlen(input);
#else
input[0] = '\0';
len = 0;
#endif
ShowCaret(mswin_hwnd_from_winid(WIN_MESSAGE));
done = FALSE;
while (!done) {