godot/scene/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
..
canvas_item.cpp Remove NOTIFICATION_MOVED_IN_PARENT 2023-04-06 13:57:13 +02:00
canvas_item.h Remove NOTIFICATION_MOVED_IN_PARENT 2023-04-06 13:57:13 +02:00
canvas_layer.cpp Remove NOTIFICATION_MOVED_IN_PARENT 2023-04-06 13:57:13 +02:00
canvas_layer.h Remove NOTIFICATION_MOVED_IN_PARENT 2023-04-06 13:57:13 +02:00
http_request.cpp [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
http_request.h [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
instance_placeholder.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
instance_placeholder.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
missing_node.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
missing_node.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
multiplayer_api.cpp [MP] Fix orphan StringName on close. 2023-02-27 09:45:16 +01:00
multiplayer_api.h Use enum instead of int in virtual methods return type 2023-01-31 19:06:49 +01:00
multiplayer_peer.cpp Add missing documentation for MultiplayerPeerExtension 2023-03-20 08:08:59 -07:00
multiplayer_peer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
node.cpp Update sibling indices after a node is removed. 2023-04-06 20:47:57 +02:00
node.h Remove NOTIFICATION_MOVED_IN_PARENT 2023-04-06 13:57:13 +02:00
resource_preloader.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
resource_preloader.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_tree.cpp Prevent off-screen controls in editor 2023-02-20 20:25:39 +01:00
scene_tree.h Add SceneTree.unload_current_scene() 2023-01-10 14:02:06 +01:00
SCsub
shader_globals_override.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
shader_globals_override.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
timer.cpp Fix auto-translations in editor 2023-03-22 23:57:12 +01:00
timer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
viewport.cpp Remove NOTIFICATION_MOVED_IN_PARENT 2023-04-06 13:57:13 +02:00
viewport.h Remove NOTIFICATION_MOVED_IN_PARENT 2023-04-06 13:57:13 +02:00
window.cpp Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
window.h Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00