diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-21 15:01:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-21 15:15:39 +0300 |
commit | a86482f81cf3e4a0043459b10242d4a9c337105b (patch) | |
tree | b6a6f7de24588cec87850fcb8db2f8175bce771a /source/blender/windowmanager/intern | |
parent | 47bf0934f5743d14024ef693b2bfe4510c2c666a (diff) |
Fix T43158: pixels in the 3d-view was mis-aligned
Change the pixel offset for regions, it make oversampling blurry when drawing pixel aligned values.
See T41749
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_subwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c index d2df020600a..4ce2415e310 100644 --- a/source/blender/windowmanager/intern/wm_subwindow.c +++ b/source/blender/windowmanager/intern/wm_subwindow.c @@ -367,7 +367,7 @@ static void wmOrtho2_offset(const float x, const float y, const float ofs) */ void wmOrtho2_region_pixelspace(const struct ARegion *ar) { - wmOrtho2_offset(ar->winx + 1, ar->winy + 1, -GLA_PIXEL_OFS); + wmOrtho2_offset(ar->winx, ar->winy, -0.01f); } void wmOrtho2_pixelspace(const float x, const float y) |