godot/main
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
..
app_icon.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
main.cpp Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
main.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
main_builders.py Tweak the editor splash screen color to better match the default theme 2021-03-17 22:57:35 +01:00
main_timer_sync.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
main_timer_sync.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
performance.cpp Fix 'Navigation Process' monitor initialization 2023-01-13 23:47:31 +01:00
performance.h Add NavigationServer Performance Monitor 2023-01-08 22:58:21 +01:00
SCsub Remove editor splash screen with sponsors logo 2021-11-30 12:47:25 +01:00
splash.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2019-10-12 23:23:33 +02:00