Skip to content

Commit

Permalink
fix: Web build rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Feb 15, 2025
1 parent 73a3b21 commit e232a2b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/libimhex/source/api/imhex_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,13 +648,7 @@ namespace hex {
return std::midpoint(xScale, yScale);
}
#elif defined(OS_WEB)
return EM_ASM_DOUBLE({
try {
return window.devicePixelRatio;
} catch (e) {
return 1.0;
}
});
return 1.0F;
#else
return 1.0F;
#endif
Expand Down

0 comments on commit e232a2b

Please sign in to comment.