virtualx-engine/scene/main
Markus Sauermann 6743ac34d3 Simplify Viewport::_set_size
`Viewport.to_screen_rect` is used only in a single location to compare it
to `Rect2i()`.

When called from `SubViewport`, `to_screen_rect` is always equal to `Rect2i()`.
When called from `Window`, `to_screen_rect` is always different from `Rect2i()`.

So the comparison `to_screen_rect != Rect2i()` can be replaced by
`Object::cast_to<Window>(this)`.

This allows the removal of `Viewport.to_screen_rect` and the simplification of
`Viewport::_set_size`.
2023-02-02 19:09:14 +01:00
..
canvas_item.cpp Fix various typos with codespell 2023-02-01 08:45:41 +01:00
canvas_item.h Merge pull request #67507 from Sauermann/fix-toplevel-root-control-node 2023-01-31 15:55:46 +01:00
canvas_layer.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
canvas_layer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01: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 Use enum instead of int in virtual methods return type 2023-01-31 19:06:49 +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 Use enum instead of int in virtual methods return type 2023-01-31 19:06:49 +01:00
multiplayer_peer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
node.cpp More codespell fixes, do more changes from previous ignore list 2023-02-01 12:11:36 +01:00
node.h Update instances of scenes which have been reimported. 2023-01-16 13:46:33 -08: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 Fix change_scene memory leak due to duplicate instantiation 2023-01-15 14:05:15 +01:00
scene_tree.h Add SceneTree.unload_current_scene() 2023-01-10 14:02:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
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 One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
timer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
viewport.cpp Simplify Viewport::_set_size 2023-02-02 19:09:14 +01:00
viewport.h Simplify Viewport::_set_size 2023-02-02 19:09:14 +01:00
window.cpp Simplify Viewport::_set_size 2023-02-02 19:09:14 +01:00
window.h Merge pull request #59310 from Sauermann/proposal-event-transform 2023-01-31 15:57:07 +01:00