You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Prevent upscaled SVG from exceeding Image bounds
Also expose Image MAX_WIDTH and MAX_HEIGHT.
Fixes #24455.
(cherry picked from commit cc0842f9a6)
This commit is contained in:
@@ -2303,6 +2303,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);
|
||||
|
||||
Reference in New Issue
Block a user