improved font scaling text and window adjustment, added ctrl + scroll hotkey for font scaling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user