fix: Default scale of Web version on macOS

This commit is contained in:
WerWolv
2025-02-16 16:35:37 +01:00
parent 267ef37cb6
commit bf10d333cd
2 changed files with 5 additions and 11 deletions

View File

@@ -648,17 +648,7 @@ namespace hex {
return std::midpoint(xScale, yScale);
}
#elif defined(OS_WEB)
return MAIN_THREAD_EM_ASM_DOUBLE({
try {
if (navigator.platform === "MacIntel") {
return 2.0;
} else {
return 1.0;
}
} catch (e) {
return 1.0;
}
});
return 1.0F;
#else
return 1.0F;
#endif