]> granicus.if.org Git - nethack/commitdiff
B01006 (from Yitzhak)
authornethack.allison <nethack.allison>
Tue, 6 Aug 2002 23:57:48 +0000 (23:57 +0000)
committernethack.allison <nethack.allison>
Tue, 6 Aug 2002 23:57:48 +0000 (23:57 +0000)
win32tty truncated score list

doc/fixes34.1
sys/winnt/nttty.c

index ce8ba1bab282411b793979d8ffc7794dcf7a797d..7dbeae68ad15088b0f6de3fc17d64c214cdf37cb 100644 (file)
@@ -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
index 3b5b11eef7a400f91a0b013a6bfc5fdf5c570857..d2a806d8cf52fa54133aaafd2b7258d4675467e3 100644 (file)
@@ -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);
 }