This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
functions:widescreen [2016/10/05 02:05] – created korshun | functions:widescreen [2016/10/16 13:24] – [See also] korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Widescreen support functions ====== | ====== Widescreen support functions ====== | ||
- | ==== GetAspectRatio ==== | + | ===== GetAspectRatio |
'' | '' | ||
- | Returns the aspect ratio that ZDoom is currently using for HudMessages. | + | Returns the aspect ratio that ZDoom is currently using for [[zdoom> |
* '' | * '' | ||
Line 11: | Line 11: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | ===== Hud boundaries ===== | ||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | Return the boundaries of the screen for the given virtual width or height, accounting for current aspect ratio. Equivalent to adding or subtracting a hud border manually. | ||
+ | |||
+ | ===== Hud borders ===== | ||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | Return hud borders for the given virtual width or height. | ||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | Variants of the same functions operating on currently set size, instead of receiving it every time, are available in [[.functions: | ||
+ | |||
+ | |||