mirror of https://github.com/WerWolv/ImHex.git
fix: Icons not being scaled correctly anymore
This commit is contained in:
parent
9b9f7e2a1d
commit
ac8ec2b622
|
@ -278,7 +278,13 @@ namespace hex::plugin::builtin {
|
|||
|
||||
// Disable merge mode for this font but retain the rest of the configuration
|
||||
cfg.MergeMode = false;
|
||||
cfg.SizePixels = font.defaultSize.value_or(fontSize);
|
||||
|
||||
auto size = fontSize;
|
||||
if (font.defaultSize.has_value())
|
||||
size = font.defaultSize.value() * ImHexApi::System::getGlobalScale();
|
||||
|
||||
cfg.SizePixels = size;
|
||||
|
||||
ON_SCOPE_EXIT { cfg.MergeMode = true; };
|
||||
|
||||
// Construct a range that only contains the first glyph of the font
|
||||
|
|
Loading…
Reference in New Issue