Skip to content

ScreenHeight

The height in pixels of the game screen.

Stored height

Specification — Stored height
Applies to
client settings
File
SUN.INI
Section
[Video]
Value
integer
When omitted
480The startup read has already opened the screen, so this read keeps the height the screen runs at. That height is 480 unless the command line gave one.

The game reads this height a second time with the rest of its settings, after the display is already open. This read does not resize the screen. It sets the height the display options screen starts from, and the height the game returns to when a mode tried there is declined.

ScreenWidth covers the stored pair in full, including why writing -1 is not the same as leaving the assignment out.

Height the display opens at

Specification — Height the display opens at
Applies to
client settings
File
SUN.INI
Section
[Video]
Value
integer
When omitted
ComputedA height left out keeps the launch option's height, if any. If either dimension is still unset, both become 640 by 480.

The game reads this height with ScreenWidth before it opens its window, and renders at the resulting size. That page covers how the pair combines with the launch option, the 640 by 480 fallback, and what happens when the renderer cannot start.

The height is the full height of the game screen. The sidebar runs down the whole of it, and the tactical view takes the height left below a 16-pixel strip across the top.