mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
web: Let ImHex Web run more standalone
(cherry picked from commit f76ea2a677)
This commit is contained in:
@@ -681,7 +681,7 @@ namespace hex {
|
||||
return std::midpoint(xScale, yScale);
|
||||
}
|
||||
#elif defined(OS_WEB)
|
||||
return 1.0F;
|
||||
return MAIN_THREAD_EM_ASM_INT({ return window.devicePixelRatio; });
|
||||
#else
|
||||
return 1.0F;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user