ScreenWidth
The width in pixels of the game screen.
Stored width
- Applies to
- client settings
- File
SUN.INI- Section
[Video]- Value
- integer
- When omitted
- UnchangedThe read passes through the width the display was already opened at, and nothing later overwrites it.
This is the later of the two reads of the assignment, made with the rest of the client settings once the display is already open. It cannot change the size of the screen the game is drawing on; what it settles is the size the display options screen starts from.
Accepting the display options screen stores the mode picked there, and leaving the options screen behind it writes the stored width back to sun.ini, so the file normally carries one once that screen has been used.
Width the display opens at
- Applies to
- client settings
- File
SUN.INI- Section
[Video]- Value
- integer
- When omitted
- ComputedBoth dimensions become 640 by 480 when either is left out.
This is the earlier of the two reads of the assignment, made before the main window exists. Either dimension left out or written as -1 replaces both with 640 by 480, so a width alone is never enough to size the screen. The main window is then created at the resulting size, and the game reports a video error and stops if the renderer cannot start.
The size also fixes the layout the game is drawn into: the sidebar takes a fixed 168 pixels of the width, and the tactical view is given what is left.