diff options
author | Riteo Siuga <riteo@posteo.net> | 2024-09-20 01:50:31 +0200 |
---|---|---|
committer | Riteo Siuga <riteo@posteo.net> | 2024-09-20 02:26:10 +0200 |
commit | ef48c4d306fae2b819e937509b663aef9e285f7a (patch) | |
tree | 30aaa1f1d625c8df7037901880fa289b5bdf73b7 /drivers/unix/dir_access_unix.cpp | |
parent | 0a4aedb36065f66fc7e99cb2e6de3e55242f9dfb (diff) | |
download | redot-engine-ef48c4d306fae2b819e937509b663aef9e285f7a.tar.gz |
ColorPicker: ignore TextureRect expand mode during legacy picking
The color picker has a "legacy" fallback mode when
`FEATURE_SCREEN_CAPTURE` is not supported by the current
`DisplayServer`. It works by "freezing" the current view by making a
huge `Popup` with a `TextureRect` inside covering the screen.
Before this patch, said `TextureRect` could get cut off if its buffer
was nominally bigger than the parent popup, such as when the
`canvas_items` content scale mode is active.
This is because the default TextureRect scaling logic only allows
expanding the texture up. `EXPAND_IGNORE_SIZE` fixes that by allowing
the texture to logically "shrink", filling the whole screen
independently of the actual buffer size.
Special thanks to Federico Fausto Santoro for helping with the diagnosis
:D
Co-Authored-By: Federico Fausto Santoro <fedyfausto@hotmail.com>
Diffstat (limited to 'drivers/unix/dir_access_unix.cpp')
0 files changed, 0 insertions, 0 deletions