Here is a main-win.c - angband.rc pair that does three things.
1. It removes the bigtile,double tile, and tripple tile options and replaces them with specific tile multipliers.
2. It uses a graphics_modes array like in the OSX port. However, it is not quite as easy to use as the OSX port because the menu option for the graphics mode has to be added to three places, the array on line 227, a case statement around line 3609, and in the angband.rc file.
3. Adds the tileset filename and "graf" name to the ini file and adds two static global variables to hold them. This allows an arbitrary tileset file to be used on startup, without having to recompile the program. Changing the graphics mode overwrites this though.
For 2 and 3, the element size is taken from the filename. The filename needs to start with XxY, for instance 8x16.png or 64x64test.png works.
Diff patches are included in the zip file, but since I collapsed and reordered the case statements for the graphics modes, I think the diff patch does not reflect that section of the code well.
1. It removes the bigtile,double tile, and tripple tile options and replaces them with specific tile multipliers.
2. It uses a graphics_modes array like in the OSX port. However, it is not quite as easy to use as the OSX port because the menu option for the graphics mode has to be added to three places, the array on line 227, a case statement around line 3609, and in the angband.rc file.
3. Adds the tileset filename and "graf" name to the ini file and adds two static global variables to hold them. This allows an arbitrary tileset file to be used on startup, without having to recompile the program. Changing the graphics mode overwrites this though.
For 2 and 3, the element size is taken from the filename. The filename needs to start with XxY, for instance 8x16.png or 64x64test.png works.
Diff patches are included in the zip file, but since I collapsed and reordered the case statements for the graphics modes, I think the diff patch does not reflect that section of the code well.
Comment