Revision: 34504
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34504
Author:   ton
Date:     2011-01-26 12:48:22 +0000 (Wed, 26 Jan 2011)
Log Message:
-----------
After test, offset is better to be 0.001f (test in windows nvidia)

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/view2d.c

Modified: trunk/blender/source/blender/editors/interface/view2d.c
===================================================================
--- trunk/blender/source/blender/editors/interface/view2d.c     2011-01-26 
12:44:09 UTC (rev 34503)
+++ trunk/blender/source/blender/editors/interface/view2d.c     2011-01-26 
12:48:22 UTC (rev 34504)
@@ -991,12 +991,12 @@
        
        /* XXX ton: this flag set by outliner, for icons */
        if(v2d->flag & V2D_PIXELOFS_X) {
-               curmasked.xmin= floor(curmasked.xmin) + 0.375f;
-               curmasked.xmax= floor(curmasked.xmax) + 0.375f;
+               curmasked.xmin= floor(curmasked.xmin) + 0.001f;
+               curmasked.xmax= floor(curmasked.xmax) + 0.001f;
        }
        if(v2d->flag & V2D_PIXELOFS_Y) {
-               curmasked.ymin= floor(curmasked.ymin) + 0.375f;
-               curmasked.ymax= floor(curmasked.ymax) + 0.375f;
+               curmasked.ymin= floor(curmasked.ymin) + 0.001f;
+               curmasked.ymax= floor(curmasked.ymax) + 0.001f;
        }
        
        /* set matrix on all appropriate axes */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to