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
UnchangedThe read passes through the height 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. ScreenWidth covers what the pair settles at that point: the mode the display options screen starts from, and the mode a scenario switches to where switching is allowed. Writing -1 rather than leaving the assignment out is not the same thing, for the reason given there.

Height the display opens at

Specification — Height 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. ScreenWidth covers what the pair does at that point: either dimension missing or written as -1 replaces both, and the resulting size opens the window and sets the video mode.

The height is the full height of the game screen, and the sidebar is drawn down the whole of it. The depth and alpha buffers are allocated at a fixed 480 span as the display is brought up, whatever height was chosen.

Starting the game with the internet debug view showing overrides the height twice, first to 480 while the mode is set and then to 400 once the primary surface exists.