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

@@ -195,6 +195,7 @@ win32: strip illegal file name characters from plname and replace with '_'
win32gui: make error() work; it was essentially non-operative in 3.4.0
win32gui: fix alignment of columns in menu windows
win32gui: Window menu File|Save worked during #quit disclosure processing
win32gui: make mswin_yn_function() case insensitive like the tty version
win32tty: honour the use_inverse option and default to ATR_BOLD if disabled
win32tty: respond only to mouse clicks not mouse movement
win32tty: allow ^C to abort the game at the "Who are you?" prompt
@@ -220,7 +221,7 @@ lootabc option
runmode option
showrace option
travel option
cmdassist option to provide additional feedback for some commands
cmdassist option to provide additional error feedback for some commands
mouse_support wincap option
debug mode: #panic routine to test panic() and panic save file generation
a new PANICLOG optional file to log the reason for panic and impossible messages

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;