diff options
author | Ton Roosendaal <ton@blender.org> | 2012-12-12 23:09:25 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2012-12-12 23:09:25 +0400 |
commit | dcf6e5f5f68b48f5536502849e53fa966d7bc40c (patch) | |
tree | cd597517cd8c4422a2733e38f0b14bcfbc0c4637 /source/blender/windowmanager | |
parent | 12b642062c6fcef70151bd2424c2ebbc6a1a6843 (diff) |
Quick fix for ghost error - solves pixelsize to return 0.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 2e2595259ce..0f983cbd568 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -305,6 +305,7 @@ static void wm_init_userdef(bContext *C) /* displays with larger native pixels, like Macbook. Used to scale dpi with */ U.pixelsize = GHOST_GetNativePixelSize(); + if (U.pixelsize == 0) U.pixelsize = 1; BKE_userdef_state(); } |