diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-05 08:35:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-05 08:35:28 +0400 |
commit | 37ff3a0e8a3d47943d8f73a21f0551dfc5587009 (patch) | |
tree | eba7430b816313d939c476fdc7e14c4aba5084c0 | |
parent | 2b3f97c94d92cdd559c99e4d3a2ced7efeb048e3 (diff) |
minor glitch with border drawing, use glRecti rather then glRectf, so rounding matches the border render
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 2a4ab0a80b8..2b47d12ebba 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1189,7 +1189,7 @@ static void drawviewborder(Scene *scene, ARegion *ar, View3D *v3d) y4 = y1 + scene->r.border.ymax * (y2 - y1); cpack(0x4040FF); - glRectf(x3, y3, x4, y4); + glRecti(x3, y3, x4, y4); } /* safety border */ @@ -3420,7 +3420,7 @@ static void view3d_main_area_draw_info(const bContext *C, ARegion *ar, const cha setlinestyle(3); cpack(0x4040FF); - glRectf(v3d->render_border.xmin * ar->winx, v3d->render_border.ymin * ar->winy, + glRecti(v3d->render_border.xmin * ar->winx, v3d->render_border.ymin * ar->winy, v3d->render_border.xmax * ar->winx, v3d->render_border.ymax * ar->winy); setlinestyle(0); |