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-01-26 15:26:44 +0300
committerTon Roosendaal <ton@blender.org>2011-01-26 15:26:44 +0300
commitefa9d4f7e0921759500e4809a8eb72a4c14b20d5 (patch)
tree8b47f639050d8172a2a00a8d83fda12550e91147 /source/blender/editors/space_outliner/outliner.c
parenta70e69738191675d8630974b3eef93a2b7236323 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner.c')
-rw-r--r--source/blender/editors/space_outliner/outliner.c2
1 files changed, 2 insertions, 0 deletions
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);