[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34608] trunk/blender/source/blender/ editors/interface/view2d.c: Icons in outliner were jittering a bit on sizing of the area.

Ton Roosendaal ton at blender.org
Tue Feb 1 18:54:03 CET 2011


Revision: 34608
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34608
Author:   ton
Date:     2011-02-01 17:54:02 +0000 (Tue, 01 Feb 2011)
Log Message:
-----------
Icons in outliner were jittering a bit on sizing of the area.
Subpixel position issue... when is this ever correct? :)

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-02-01 15:51:40 UTC (rev 34607)
+++ trunk/blender/source/blender/editors/interface/view2d.c	2011-02-01 17:54:02 UTC (rev 34608)
@@ -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.001f;
-		curmasked.xmax= floor(curmasked.xmax) + 0.001f;
+		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.001f;
-		curmasked.ymax= floor(curmasked.ymax) + 0.001f;
+		curmasked.ymin= floor(curmasked.ymin) - 0.001f;
+		curmasked.ymax= floor(curmasked.ymax) - 0.001f;
 	}
 	
 	/* set matrix on all appropriate axes */




More information about the Bf-blender-cvs mailing list