fix: Don't apply backing scale factor twice to splash screen
This commit is contained in:
parent
84954cd2f1
commit
497670c4c3
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user