From 00653d2f9a03e2e68d85a9b48d39b92bf5cd2180 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Tue, 6 Aug 2002 02:44:08 +0000 Subject: [PATCH] win32gui: case insensitive mswin_yn_function() Address a complaint by about mswin_yn_function() requiring lowercase 'n', when the tty port tty_yn_function() accepts upper or lower. --- doc/fixes34.1 | 3 ++- win/win32/mswproc.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 0b4075045..4a35c7ede 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/win/win32/mswproc.c b/win/win32/mswproc.c index 933bf6d3b..b9e872b51 100644 --- a/win/win32/mswproc.c +++ b/win/win32/mswproc.c @@ -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;