impr: Try to detect backing scaling factor on the web build
This commit is contained in:
parent
1eee31fdbb
commit
f976988c75
@ -638,12 +638,13 @@ namespace hex {
|
||||
return std::midpoint(xScale, yScale);
|
||||
}
|
||||
#elif defined(OS_WEB)
|
||||
return 1.0F;
|
||||
/*
|
||||
return EM_ASM_INT({
|
||||
return MAIN_THREAD_EM_ASM_INT({
|
||||
try {
|
||||
return window.devicePixelRatio;
|
||||
} catch (e) {
|
||||
return 1.0;
|
||||
}
|
||||
});
|
||||
*/
|
||||
#else
|
||||
return 1.0F;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user