diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-03-29 18:39:39 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-03-29 18:39:39 +0400 |
commit | e124c477135cb59daedcb1cfd0243ed1810b8f95 (patch) | |
tree | 48a2c31907dcac1f44bcd92b616749e568872e91 /source/blender/editors/interface | |
parent | b84a6c4d7eba665975661428072eda57fa33abb7 (diff) |
Fix #26653: changed DPI setting in user preferences is not saved as default.
Clamping on load did not match RNA property min/max.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_style.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_style.c b/source/blender/editors/interface/interface_style.c index b4b049d8b4d..7be089fdf32 100644 --- a/source/blender/editors/interface/interface_style.c +++ b/source/blender/editors/interface/interface_style.c @@ -291,7 +291,9 @@ void uiStyleInit(void) uiStyle *style= U.uistyles.first; /* recover from uninitialized dpi */ - CLAMP(U.dpi, 72, 240); + if(U.dpi == 0) + U.dpi= 72; + CLAMP(U.dpi, 48, 128); /* default builtin */ if(font==NULL) { |