mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Prevent upscaled SVG from exceeding Image bounds
Also expose Image MAX_WIDTH and MAX_HEIGHT. Fixes #24455.
This commit is contained in:
parent
89e7c2cb13
commit
cc0842f9a6
4 changed files with 18 additions and 4 deletions
|
@ -2632,6 +2632,9 @@ void Image::_bind_methods() {
|
|||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY, "data", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_STORAGE), "_set_data", "_get_data");
|
||||
|
||||
BIND_CONSTANT(MAX_WIDTH);
|
||||
BIND_CONSTANT(MAX_HEIGHT);
|
||||
|
||||
BIND_ENUM_CONSTANT(FORMAT_L8); //luminance
|
||||
BIND_ENUM_CONSTANT(FORMAT_LA8); //luminance-alpha
|
||||
BIND_ENUM_CONSTANT(FORMAT_R8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue