mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
fix: DPI scaling
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user