improved font scaling text and window adjustment, added ctrl + scroll hotkey for font scaling

This commit is contained in:
dan_s
2026-03-05 01:22:20 -06:00
parent 45a2ccd9f3
commit 68c2a59d09
4 changed files with 183 additions and 101 deletions

View File

@@ -70,8 +70,10 @@ inline void setFontAtlasScale(float v) { detail::fontAtlasScaleRef() = v; }
*/
inline void setUserFontScale(float v) {
v = std::max(1.0f, std::min(1.5f, v));
if (v != detail::userFontScaleRef()) {
detail::userFontScaleRef() = v;
detail::userFontScaleRef() = v;
// Compare against the atlas scale, not the live ref — setUserFontScaleVisual
// may have already updated the ref during slider drag.
if (v != detail::fontAtlasScaleRef()) {
detail::fontReloadNeededRef() = true;
}
}