X11 dynamic map mode selection

Prompted by a question from Pat a long time back, this change finally allows
tiles or text map mode to be chosen dynamically at runtime (using the
"tiled_map" option) rather than having to pick it via an X resource and
keep your selection until you exit. This brings map mode selection up to a
level similar to most other graphical window ports.
In addition, the map mode automatically switches to text on the Rogue
level, also like other graphical window ports.
The default mode for the X11 binary is now tiles, once again, like most (all?)
other graphical window ports.
The patch also removes some dead X11 code that is unlikely to be useful again.
This commit is contained in:
cohrs
2003-10-03 02:09:27 +00:00
parent ed8ce13d8f
commit a5c8b517d2
6 changed files with 191 additions and 182 deletions

View File

@@ -11,7 +11,7 @@ NetHack*menu*font: fixed
NetHack*text*font: fixed
NetHack*map*font: nh10
! To use full-color tiles for the map, uncomment the tile file name.
! tile_file names a file containing full-color tiles for the map.
! If you use a 100dpi (or greater) monitor you may wish to double the
! tile size so you can see the figures. If NetHack was compiled to
! use XPM (USE_XPM in config.h), the tile_file is a standard XPM file.
@@ -19,7 +19,7 @@ NetHack*map*font: nh10
! the custom format - to enlarge an XPM file, use processing tools
! such as XV or preferably PBMplus.
!
!NetHack.tile_file: x11tiles
NetHack.tile_file: x11tiles
!NetHack.double_tile_size: True
!
! The annotation of pets.