mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
build: Update ImGui to v1.92.1 (#2325)
Update ImGui to the latest version and rewrite most of the font handling code
This commit is contained in:
@@ -198,10 +198,20 @@ namespace hex::fonts {
|
||||
return m_italic.isChecked();
|
||||
}
|
||||
|
||||
[[nodiscard]] const std::string FontSelector::antiAliasingType() const {
|
||||
[[nodiscard]] AntialiasingType FontSelector::getAntialiasingType() const {
|
||||
if (isPixelPerfectFont())
|
||||
return "none";
|
||||
return m_antiAliased.getValue();
|
||||
return AntialiasingType::None;
|
||||
|
||||
auto value = m_antiAliased.getValue();
|
||||
if (value == "none")
|
||||
return AntialiasingType::None;
|
||||
else if (value == "grayscale")
|
||||
return AntialiasingType::Grayscale;
|
||||
else if (value == "subpixel")
|
||||
return AntialiasingType::Lcd;
|
||||
else
|
||||
return AntialiasingType::Grayscale;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user