fix: Drastically improve pattern highlighting performance

This commit is contained in:
WerWolv
2022-07-01 19:05:53 +02:00
parent ef5fbba56b
commit 2d982e2088
3 changed files with 30 additions and 32 deletions

View File

@@ -173,12 +173,12 @@ namespace hex::init {
auto meanScale = std::midpoint(xScale, yScale);
// On Macs with a retina display (basically all modern ones we care about), the OS reports twice
// the actual monitor scale for some obscure reason. Get rid of this here so ImHex doesn't look
// extremely huge with native scaling on macOS.
#if defined(OS_MACOS)
meanScale /= 2;
#endif
// On Macs with a retina display (basically all modern ones we care about), the OS reports twice
// the actual monitor scale for some obscure reason. Get rid of this here so ImHex doesn't look
// extremely huge with native scaling on macOS.
#if defined(OS_MACOS)
meanScale /= 2;
#endif
if (meanScale <= 0.0) {
meanScale = 1.0;