Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2011-02-01 20:54:02 +0300
committerTon Roosendaal <ton@blender.org>2011-02-01 20:54:02 +0300
commitf5e2669444428a0ac77867bceb66a25af090617d (patch)
tree252e6b5c3be03c81de1f61113ebcdc34b7345b48 /source/blender/editors/interface/view2d.c
parent482af562ebb232625684b56392a9050974ce0b07 (diff)
Icons in outliner were jittering a bit on sizing of the area.
Subpixel position issue... when is this ever correct? :)
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r--source/blender/editors/interface/view2d.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c
index 3c74c38dfb6..245905418ec 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.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 */