fix: Font point calculation not respecting framebuffer scale

This commit is contained in:
WerWolv
2025-07-30 22:33:16 +02:00
parent 6fcc3e8cb3
commit 280dea23d0

View File

@@ -1130,7 +1130,7 @@ namespace hex {
}
float getDpi() {
auto dpi = ImGui::GetCurrentContext()->CurrentDpiScale * 96.0F;
auto dpi = ImHexApi::System::getNativeScale() * ImHexApi::System::getBackingScaleFactor() * 96.0F;
return dpi ? dpi : 96.0F;
}