godot/doc
Riteo 87cfc415a3 Add content scale stretch modes, implement integer scaling
Integer scaling is achieved (after aspect expansion) by "lying" to the
stretching code about the window's size, telling it that it's always an
integer multiple of the viewport so that it only gets stretched to an
integer factor.

This approach works with all stretch and aspect modes and doesn't
require handling for each, only requiring to "loosen up" some
self-excluding conditions (in other words, replacing some `else if`s
with just `if`s) regarding viewport offset and margin calculation (black
bars).

Includes a tiny usability change that adds a range hint for the content
scale factor between 0.5 to 8.0.

Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-08-10 19:45:47 +02:00
..
classes Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
tools fix conversion of csharp attributes in code blocks 2022-12-05 22:58:47 +01:00
translations i18n: Sync translations with Weblate 2023-04-04 00:34:07 +02:00
class.xsd
Doxyfile
Makefile Safeguard Makefile commands 2023-02-27 14:02:33 +01:00