diff options
author | Felipe Augusto Marques <felaugmar@gmail.com> | 2023-06-14 20:27:56 -0300 |
---|---|---|
committer | Felipe Augusto Marques <felaugmar@gmail.com> | 2023-06-23 00:43:43 -0300 |
commit | 26eb3db234ec6e16a954f34f6aa7e68e7a926848 (patch) | |
tree | 1a6839163663aa195858edef5900c3be8a28475d /platform/macos/export | |
parent | f9fc77bbe474e33967dfde69a2efa442f465fae2 (diff) | |
download | redot-engine-26eb3db234ec6e16a954f34f6aa7e68e7a926848.tar.gz |
Added Image's `load_svg_from_(buffer|string)`
No core dependency to the svg module.
Diffstat (limited to 'platform/macos/export')
-rw-r--r-- | platform/macos/export/export_plugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cpp index 2d185db812..0dc6d0dcee 100644 --- a/platform/macos/export/export_plugin.cpp +++ b/platform/macos/export/export_plugin.cpp @@ -2442,11 +2442,10 @@ EditorExportPlatformMacOS::EditorExportPlatformMacOS() { Ref<Image> img = memnew(Image); const bool upsample = !Math::is_equal_approx(Math::round(EDSCALE), EDSCALE); - ImageLoaderSVG img_loader; - img_loader.create_image_from_string(img, _macos_logo_svg, EDSCALE, upsample, false); + ImageLoaderSVG::create_image_from_string(img, _macos_logo_svg, EDSCALE, upsample, false); logo = ImageTexture::create_from_image(img); - img_loader.create_image_from_string(img, _macos_run_icon_svg, EDSCALE, upsample, false); + ImageLoaderSVG::create_image_from_string(img, _macos_run_icon_svg, EDSCALE, upsample, false); run_icon = ImageTexture::create_from_image(img); #endif |