diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-26 15:48:22 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-26 15:48:22 +0300 |
commit | c7ea17bb9216d3bb531c5aaf1d345d79f6c48cf7 (patch) | |
tree | a076896c30cf702dce3764e466f1e35c030545da /source | |
parent | dc30caab61755ba01f3330ff9513427a4c421c4f (diff) |
After test, offset is better to be 0.001f (test in windows nvidia)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index a2a16afc2f8..3c74c38dfb6 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -991,12 +991,12 @@ void UI_view2d_view_ortho(View2D *v2d) /* 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 */ |