1
0
mirror of synced 2025-02-13 09:02:37 +01:00

fix: Don't apply backing scale factor twice to splash screen

This commit is contained in:
WerWolv 2025-02-02 21:36:49 +01:00
parent 84954cd2f1
commit 497670c4c3

View File

@ -542,7 +542,7 @@ namespace hex::init {
void WindowSplash::loadAssets() {
// Load splash screen image from romfs
const auto backingScale = ImHexApi::System::getNativeScale() * ImHexApi::System::getBackingScaleFactor();
const auto backingScale = ImHexApi::System::getNativeScale();
this->m_splashBackgroundTexture = ImGuiExt::Texture::fromSVG(romfs::get("splash_background.svg").span(), WindowSize.x * backingScale, WindowSize.y * backingScale, ImGuiExt::Texture::Filter::Linear);
this->m_splashTextTexture = ImGuiExt::Texture::fromSVG(romfs::get("splash_text.svg").span(), WindowSize.x * backingScale, WindowSize.y * backingScale, ImGuiExt::Texture::Filter::Linear);