From 3e175049bb166ef38ed5cbebd8c54d702cd3b728 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Tue, 6 Aug 2002 23:57:48 +0000 Subject: [PATCH] B01006 (from Yitzhak) win32tty truncated score list --- doc/fixes34.1 | 1 + sys/winnt/nttty.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index ce8ba1bab..7dbeae68a 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -200,6 +200,7 @@ 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 +win32tty: fix truncated score list X11: restore support for non-square tiles when USE_XPM is defined Gnome: add support for non-square tiles tty: remove #define DEBUG that forced debug behavior in production builds diff --git a/sys/winnt/nttty.c b/sys/winnt/nttty.c index 3b5b11eef..d2a806d8c 100644 --- a/sys/winnt/nttty.c +++ b/sys/winnt/nttty.c @@ -123,11 +123,11 @@ tty_startup(wid, hgt) int *wid, *hgt; { /* int twid = origcsbi.dwSize.X; */ - int twid = origcsbi.srWindow.Right - origcsbi.srWindow.Left; + int twid = origcsbi.srWindow.Right - origcsbi.srWindow.Left + 1; if (twid > 80) twid = 80; *wid = twid; - *hgt = origcsbi.srWindow.Bottom - origcsbi.srWindow.Top; + *hgt = origcsbi.srWindow.Bottom - origcsbi.srWindow.Top + 1; set_option_mod_status("mouse_support", SET_IN_GAME); } -- 2.40.0