Skip to content

Commit f2b4e49

Browse files
committed
fix: Crash when loading oobe screen
1 parent 39dd67a commit f2b4e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/builtin/source/content/out_of_box_experience.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace hex::plugin::builtin {
7676

7777
// Draw banner
7878
ImGui::SetCursorPos(scaled({ 25 * bannerSlideIn, 25 }));
79-
const auto bannerSize = s_imhexBanner.getSize() / (1.5F * (1.0F / ImHexApi::System::getGlobalScale()));
79+
const auto bannerSize = s_imhexBanner.getSize() / (3.0F * (1.0F / ImHexApi::System::getGlobalScale()));
8080
ImGui::Image(
8181
s_imhexBanner,
8282
bannerSize,
@@ -443,7 +443,7 @@ namespace hex::plugin::builtin {
443443
ImHexApi::System::setWindowResizable(false);
444444

445445
const auto imageTheme = ThemeManager::getImageTheme();
446-
s_imhexBanner = ImGuiExt::Texture::fromImage(romfs::get(hex::format("assets/{}/banner.png", imageTheme)).span<std::byte>());
446+
s_imhexBanner = ImGuiExt::Texture::fromSVG(romfs::get(hex::format("assets/{}/banner.svg", imageTheme)).span<std::byte>());
447447
s_compassTexture = ImGuiExt::Texture::fromImage(romfs::get("assets/common/compass.png").span<std::byte>());
448448
s_globeTexture = ImGuiExt::Texture::fromImage(romfs::get("assets/common/globe.png").span<std::byte>());
449449
s_screenshotDescriptions = nlohmann::json::parse(romfs::get("assets/screenshot_descriptions.json").string());

0 commit comments

Comments
 (0)