mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Try to detect backing scaling factor on the web build
This commit is contained in:
@@ -638,12 +638,13 @@ namespace hex {
|
||||
return std::midpoint(xScale, yScale);
|
||||
}
|
||||
#elif defined(OS_WEB)
|
||||
return 1.0F;
|
||||
/*
|
||||
return EM_ASM_INT({
|
||||
return window.devicePixelRatio;
|
||||
return MAIN_THREAD_EM_ASM_INT({
|
||||
try {
|
||||
return window.devicePixelRatio;
|
||||
} catch (e) {
|
||||
return 1.0;
|
||||
}
|
||||
});
|
||||
*/
|
||||
#else
|
||||
return 1.0F;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user