restore support for non-square XPM-based tiles (X11 & Gnome)

- change the way the tile sizes are calculated, based on the image size,
so non-square tiles can once again be supported.
- fix Gnome port so it can actually display non-square tiles, several
height/width uses were backwards
- update Install.X11 to note the number of tiles per row in the XPM image
This commit is contained in:
cohrs
2002-03-24 00:04:41 +00:00
parent 658ee6436a
commit 88f0680567
5 changed files with 49 additions and 48 deletions
+5 -2
View File
@@ -50,8 +50,11 @@ When using tiles, you have the option of defining USE_XPM in config.h.
This causes NetHack to use the XPM file format for the "x11tiles" file
rather than a custom format. Since the XPM format can be processed by
existing tools such as PBMPlus and XV, you can modify the tiles to suit
your environment. For example, you may magnify them for display on
high-resolution screens using the following command:
your environment. However, you need to make sure the number of tiles
in each row of the image remains the same (currently 40), as the code
depends on this to calculate the size of each tile. For example, you may
magnify them for display on high-resolution screens using the following
command:
xpmtoppm x11tiles | pnmscale -xscale 1 -yscale 1.6875 |
pnmdepth 255 | ppmquant 100 | ppmtoxpm >x11tiles_big.xpm
To use XPM, you must have the free XPM libraries installed in your system.