From efa9d4f7e0921759500e4809a8eb72a4c14b20d5 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 26 Jan 2011 12:26:44 +0000 Subject: Bugfix #25756 Outliner was drawing icons sometimes blurred. Happens when subpixel positions vary. UI code doesn't suffer this, it makes own ortho for it. This fix re-uses an un-used v2d flag (V2D_PIXELOFS_X) to force a 2d view on pixel exact positions. It's set for outliner only, I need testing feedback first. --- source/blender/editors/space_outliner/outliner.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/space_outliner/outliner.c') diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index b16fae73980..466eaa4c6e9 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -5718,6 +5718,8 @@ void draw_outliner(const bContext *C) /* update size of tot-rect (extents of data/viewable area) */ UI_view2d_totRect_set(v2d, sizex, sizey); + /* force display to pixel coords */ + v2d->flag |= (V2D_PIXELOFS_X|V2D_PIXELOFS_Y); /* set matrix for 2d-view controls */ UI_view2d_view_ortho(v2d); -- cgit v1.2.3