From a bug report: fix a typo for mouse
position handling in set_button_values(). I have no way to test this,
nor can I tell whether it could have ever impacted anyone. The old code
clearly had a mistake and the fix is obvious.
winCE: disable processing of double-click messages if the first click
causes map to scroll
X11: ensure vertical scrollbar shows up in text display windows
+X11: fix typo in mouse click sanity check; result might have pointed to
+ spurious location after window resizing
General New Features
-/* SCCS Id: @(#)winmap.c 3.5 1996/04/05 */
+/* SCCS Id: @(#)winmap.c 3.5 2005/11/12 */
/* Copyright (c) Dean Luick, 1992 */
/* NetHack may be freely redistributed. See license for details. */
/* The values can be out of range if the map window has been resized */
/* to be larger than the max size. */
if (click_x >= COLNO) click_x = COLNO-1;
- if (click_y >= ROWNO) click_x = ROWNO-1;
+ if (click_y >= ROWNO) click_y = ROWNO-1;
/* Map all buttons but the first to the second click */
click_button = (button == Button1) ? CLICK_1 : CLICK_2;