From 26eb3db234ec6e16a954f34f6aa7e68e7a926848 Mon Sep 17 00:00:00 2001 From: Felipe Augusto Marques Date: Wed, 14 Jun 2023 20:27:56 -0300 Subject: Added Image's `load_svg_from_(buffer|string)` No core dependency to the svg module. --- platform/android/export/export_plugin.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'platform/android/export/export_plugin.cpp') diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index 5d31c4911c..5a50aa9081 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -3291,11 +3291,10 @@ EditorExportPlatformAndroid::EditorExportPlatformAndroid() { Ref img = memnew(Image); const bool upsample = !Math::is_equal_approx(Math::round(EDSCALE), EDSCALE); - ImageLoaderSVG img_loader; - img_loader.create_image_from_string(img, _android_logo_svg, EDSCALE, upsample, false); + ImageLoaderSVG::create_image_from_string(img, _android_logo_svg, EDSCALE, upsample, false); logo = ImageTexture::create_from_image(img); - img_loader.create_image_from_string(img, _android_run_icon_svg, EDSCALE, upsample, false); + ImageLoaderSVG::create_image_from_string(img, _android_run_icon_svg, EDSCALE, upsample, false); run_icon = ImageTexture::create_from_image(img); #endif -- cgit v1.2.3