mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Web build scaling
This commit is contained in:
@@ -482,7 +482,12 @@ namespace hex::init {
|
||||
if (meanScale <= 0.0F)
|
||||
meanScale = 1.0F;
|
||||
|
||||
meanScale /= hex::ImHexApi::System::getBackingScaleFactor();
|
||||
meanScale /= hex::ImHexApi::System::getBackingScaleFactor();
|
||||
|
||||
// Force native scale factor to 1.0 on web builds
|
||||
#if defined(OS_WEB)
|
||||
meanScale = 1.0F;
|
||||
#endif
|
||||
|
||||
ImHexApi::System::impl::setGlobalScale(meanScale);
|
||||
ImHexApi::System::impl::setNativeScale(meanScale);
|
||||
|
||||
Reference in New Issue
Block a user