Quick fix for ghost error - solves pixelsize to return 0.
authorTon Roosendaal <ton@blender.org>
Wed, 12 Dec 2012 19:09:25 +0000 (19:09 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 12 Dec 2012 19:09:25 +0000 (19:09 +0000)
source/blender/windowmanager/intern/wm_files.c

index 2e2595259ce062d1516563b7d08cbc3710d775f2..0f983cbd5684a03035581c52417d65c4b065dd1d 100644 (file)
@@ -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();
 }