In TSHv3.06 the following resolutions are available:
- 640x480
- 800x600
- 1024x768
- 1152x864
- 1280x768
- 1280x720
- 1280x960
- 1280x1024
- 1360x768
- 1400x1050
- 1600x900
- 1600x1024
- 1600x1200
- 1920x480
- 1920x1200
- 2048x1536
These account for a number of common resolutions, but every option is not in the list found in the TSHv3 Manager. Most notably this list excludes a number of 16:10 resolutions commonly used for computer LCD native resolutions.
If you wish to add a resolution to JF-18, you can replace one of the existing resolutions with the one you desire. The label in the TSHv3 Manager won't change, but the resolution in the sim will.
In order to change a resolution, you need to hex-edit the F18.exe file. I recommend backing up this file before editing, just in case. Once you've opened F18.exe in a hex editor, go to address
161138h. Once there, you need to change the existing width and height values to the values you want. The hexadecimal values are written in nibbles (pairs) that are reversed. For example, the number
1680 in decimal notation is
0690 in hexadecimal notation (the Windows Calculator, in scientific mode, is an easy way to convert between the two). If I want to write the hex version of "1680" into F18.exe, however, I need to input "90 06", inverting the nibbles.
The exisiting TSHv3.06 resolution table is below. The commented numbers refer to the corresponding SCREEN_RES=xx variable found in the F18addon.ini file.
00561138 Tab_ScreenRes:
00561138 8002 E001 dw 640, 480 ;//0
0056113C 8002 E001 dw 640, 480 ;//1
00561140 2003 5802 dw 800, 600 ;//2
00561144 0004 0003 dw 1024, 768 ;//3
00561148 8004 6003 dw 1152, 864 ;//4
0056114C 0005 0003 dw 1280, 768 ;//5
00561150 0005 D002 dw 1280, 720 ;//6
00561154 0005 C003 dw 1280, 960 ;//7
00561158 0005 0004 dw 1280, 1024 ;//8
0056115C 5005 0003 dw 1360, 768 ;//9
00561160 7805 1A04 dw 1400, 1050 ;//10
00561164 4006 8403 dw 1600, 900 ;//11
00561168 4006 0004 dw 1600, 1024 ;//12
0056116C 4006 B004 dw 1600, 1200 ;//13
00561170 8007 B004 dw 1920, 480 ;//14
00561174 0008 0006 dw 1820, 1200 ;//15
00561178 FFFF FFFF dw 2048, 1536 ;//16
0056117C FFFF FFFF dw -1, -1 ;//17
00561180 FFFF FFFF dw -1, -1 ;//18
00561184 FFFF FFFF dw -1, -1 ;//19