Expand description
The console’s size, which the game picks (ConsoleSpec), and how it
fits the window (game ADR-0012).
Structs§
- Console
Spec - A console’s size:
cols × rowscells ofcell_w × cell_hlogical pixels. The frame (GlyphBuffer) keeps the spec it was made with; the game picks one when it starts (game ADR-0070 §6). - Layout
- Where the console goes in a window: integer
scaleand the top-left pixel offset that centres it. Everything around it is letterbox.
Functions§
- layout
- Fits a
specconsole into ascreen_w × screen_hwindow: the largest integer scale that fits (at least 1, so a too-small window crops the edges evenly), centred on whole pixels so glyphs stay crisp.