godot-module-template/scene
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
..
2d Merge pull request #75728 from smix8/fix_audiostreamplayer2d_crash_4.x 2023-04-07 12:46:53 +02:00
3d Change VehicleWheel3D suspension travel to use meters internally 2023-04-03 12:34:05 -07:00
animation Various Tween code improvements 2023-04-03 15:40:02 +02:00
audio Merge pull request #70515 from stmSi/fix-hanging-audio-pitch-scale 2023-02-17 14:06:55 +01:00
debugger Refresh filesystem when saving remote branch 2023-03-24 19:38:08 +01:00
gui Merge pull request #70901 from timothyqiu/tree-scroll-offset 2023-04-07 13:24:01 +02:00
main Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
resources Merge pull request #56671 from Rgtemze/warn_if_concave 2023-04-07 14:39:41 +02:00
theme Merge pull request #68429 from KoBeWi/PropertySettings 2023-01-06 22:59:29 +01:00
property_utils.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
property_utils.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_scene_types.cpp Make MarginContainer available with disable_advanced_gui=yes 2023-03-26 20:44:09 +02:00
register_scene_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_string_names.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_string_names.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub Add ThemeDB, expose previously static Theme methods 2022-08-26 19:23:05 +03:00