[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37694] trunk/blender/source/blender/ editors/space_outliner/outliner.c: 1 pixel tweak to have outliner icons + selection circles align

Ton Roosendaal ton at blender.org
Tue Jun 21 15:02:22 CEST 2011


Revision: 37694
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37694
Author:   ton
Date:     2011-06-21 13:02:21 +0000 (Tue, 21 Jun 2011)
Log Message:
-----------
1 pixel tweak to have outliner icons + selection circles align
for default DPI. Problem now is that icons/text are scaling
and drawing with pixel units, whilst other items draw subpixel.
This makes not every dpi size result in perfect aligning yet.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_outliner/outliner.c

Modified: trunk/blender/source/blender/editors/space_outliner/outliner.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner.c	2011-06-21 11:15:37 UTC (rev 37693)
+++ trunk/blender/source/blender/editors/space_outliner/outliner.c	2011-06-21 13:02:21 UTC (rev 37694)
@@ -4737,7 +4737,7 @@
 		
 		if(!(ELEM(tselem->type, TSE_RNA_PROPERTY, TSE_RNA_ARRAY_ELEM))) {
 			// icons a bit higher
-			tselem_draw_icon(block, xmax, (float)startx+offsx, (float)*starty+2*ufac, tselem, te, 1.0f);
+			tselem_draw_icon(block, xmax, (float)startx+offsx - 0.5f*ufac, (float)*starty+2.0f*ufac, tselem, te, 1.0f);
 			
 			offsx+= UI_UNIT_X;
 		}




More information about the Bf-blender-cvs mailing list