Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-03-29 18:39:39 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-03-29 18:39:39 +0400
commite124c477135cb59daedcb1cfd0243ed1810b8f95 (patch)
tree48a2c31907dcac1f44bcd92b616749e568872e91 /source
parentb84a6c4d7eba665975661428072eda57fa33abb7 (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')
-rw-r--r--source/blender/editors/interface/interface_style.c4
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) {