Support EDIT_GETLIN for win32
... but only without popup_dialog
This commit is contained in:
@@ -831,7 +831,8 @@ win32gui: save and load map colors from registry
|
|||||||
X11: add new character selection dialog, and obey player_selection:dialog
|
X11: add new character selection dialog, and obey player_selection:dialog
|
||||||
unix: reduce makefile verbosity by default
|
unix: reduce makefile verbosity by default
|
||||||
win32gui: new player selection dialog
|
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
|
NetHack Community Patches (or Variation) Included
|
||||||
|
|||||||
@@ -1657,8 +1657,13 @@ mswin_getlin(const char *question, char *input)
|
|||||||
mswin_clear_nhwindow(WIN_MESSAGE);
|
mswin_clear_nhwindow(WIN_MESSAGE);
|
||||||
mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, question, 0);
|
mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, question, 0);
|
||||||
mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, " ", 1);
|
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';
|
input[0] = '\0';
|
||||||
len = 0;
|
len = 0;
|
||||||
|
#endif
|
||||||
ShowCaret(mswin_hwnd_from_winid(WIN_MESSAGE));
|
ShowCaret(mswin_hwnd_from_winid(WIN_MESSAGE));
|
||||||
done = FALSE;
|
done = FALSE;
|
||||||
while (!done) {
|
while (!done) {
|
||||||
|
|||||||
Reference in New Issue
Block a user