]> granicus.if.org Git - nethack/commit
X11 map scrolling behavior [from Steve VanDevender]
authorcohrs <cohrs>
Sun, 3 Oct 2004 22:04:20 +0000 (22:04 +0000)
committercohrs <cohrs>
Sun, 3 Oct 2004 22:04:20 +0000 (22:04 +0000)
commita6bff50803615c6e4c5eab891058941846237974
treee480cb33a711d3f6b5e878fc24bdb548c5bb76d3
parent4c9d16195370ca329140be7e9e3ab89e06f4abcf
X11 map scrolling behavior [from Steve VanDevender]
This isn't really a bug, but I find it does make the map scrolling in
the generic X11 version a lot less distracting.  The original behavior
produces certain boundaries where, when the cursor moves back and forth
across that boundary, the map scrolls with each crossing.  This is
particularly annoying in places like Sokoban where the player makes that
kind of movement frequently causing large jumps of the map each time.
Changing the border and delta constants in winmap.c as below eliminates
that behavior, as well as making the cursor easier to track by tending
to recenter it whenever the map shifts.
win/X11/winmap.c