This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
functions:widescreen [2016/10/16 13:22] – korshun | functions:widescreen [2017/01/02 23:35] – [GetAspectRatio] korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Widescreen support functions ====== | ====== Widescreen support functions ====== | ||
- | ==== GetAspectRatio ==== | + | ===== GetAspectRatio |
'' | '' | ||
Line 12: | Line 12: | ||
* '' | * '' | ||
+ | Every aspect ratio constant is a fixed-point number equal to the corresponding ratio, for example, '' | ||
===== Hud boundaries ===== | ===== Hud boundaries ===== | ||
'' | '' | ||
Line 24: | Line 25: | ||
===== Hud borders ===== | ===== Hud borders ===== | ||
- | '' | + | '' |
- | '' | + | '' |
Return hud borders for the given virtual width or height. | 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 [[.hudlib|hudlib]] and have the same name, except without the '' | ||