mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
87cfc415a3
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> |
||
---|---|---|
.. | ||
app_icon.png | ||
main_builders.py | ||
main_timer_sync.cpp | ||
main_timer_sync.h | ||
main.cpp | ||
main.h | ||
performance.cpp | ||
performance.h | ||
SCsub | ||
splash.png |