mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Don't apply backing scale factor twice to splash screen
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user