fix: DPI scaling

This commit is contained in:
WerWolv
2025-07-10 14:39:52 +02:00
parent da2aa85a8a
commit 2ab54baa2c
4 changed files with 21 additions and 9 deletions

View File

@@ -115,4 +115,8 @@ IMHEX_LIBRARY_SETUP("Fonts") {
hex::fonts::setupFonts();
hex::ImHexApi::Fonts::setDefaultFont(hex::fonts::Default());
});
hex::EventDPIChanged::subscribe([](float, float newScale) {
ImGui::GetIO().ConfigDpiScaleFonts = newScale;
});
}