diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-07-12 15:09:03 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-07-12 15:09:03 +0200 |
commit | 6960a1d0e8dad8304c93129ecbfe9fe611e5440e (patch) | |
tree | 9ceb1acc6aca84fa63147b2e556a8f54cd7a5345 /platform/linuxbsd | |
parent | a33b548092433dbeddc05003b3cbd3e0991107d8 (diff) | |
parent | 26eb3db234ec6e16a954f34f6aa7e68e7a926848 (diff) | |
download | redot-engine-6960a1d0e8dad8304c93129ecbfe9fe611e5440e.tar.gz |
Merge pull request #78248 from felaugmar/load-svg-adjustable-scale
Added `Image::load_svg_from_(buffer|string)`
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/export/export_plugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/linuxbsd/export/export_plugin.cpp b/platform/linuxbsd/export/export_plugin.cpp index f74bdf3516..40151b1a02 100644 --- a/platform/linuxbsd/export/export_plugin.cpp +++ b/platform/linuxbsd/export/export_plugin.cpp @@ -521,11 +521,10 @@ EditorExportPlatformLinuxBSD::EditorExportPlatformLinuxBSD() { 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, _linuxbsd_logo_svg, EDSCALE, upsample, false); + ImageLoaderSVG::create_image_from_string(img, _linuxbsd_logo_svg, EDSCALE, upsample, false); set_logo(ImageTexture::create_from_image(img)); - img_loader.create_image_from_string(img, _linuxbsd_run_icon_svg, EDSCALE, upsample, false); + ImageLoaderSVG::create_image_from_string(img, _linuxbsd_run_icon_svg, EDSCALE, upsample, false); run_icon = ImageTexture::create_from_image(img); #endif |