summaryrefslogtreecommitdiffstats
path: root/platform/android/export/export_plugin.cpp
diff options
context:
space:
mode:
authorRiteo <riteo@posteo.net>2023-04-06 23:41:27 +0200
committerRiteo <riteo@posteo.net>2023-08-10 19:45:47 +0200
commit87cfc415a349cf2ef5d85a2045bf2089dcfa5432 (patch)
treedc7cf228dab65d550da97f50bde1809ec1d00933 /platform/android/export/export_plugin.cpp
parentb5f532094e3b3c4e074582ed90e0ed821e0c5753 (diff)
downloadredot-engine-87cfc415a349cf2ef5d85a2045bf2089dcfa5432.tar.gz
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>
Diffstat (limited to 'platform/android/export/export_plugin.cpp')
0 files changed, 0 insertions, 0 deletions