win32gui: case insensitive mswin_yn_function()

Address a complaint by <Someone> about
mswin_yn_function() requiring lowercase 'n',
when the tty port tty_yn_function() accepts
upper or lower.
This commit is contained in:
nethack.allison
2002-08-06 02:44:08 +00:00
parent 855ddbc550
commit 00653d2f9a
2 changed files with 3 additions and 2 deletions

View File

@@ -1429,7 +1429,7 @@ char mswin_yn_function(const char *question, const char *choices,
/* Only here if main window is not present */
while (result<0) {
ShowCaret(mswin_hwnd_from_winid(WIN_MESSAGE));
ch=mswin_nhgetch();
ch=lowc(mswin_nhgetch());
HideCaret(mswin_hwnd_from_winid(WIN_MESSAGE));
if (ch=='\033') {
result=yn_esc_map;