From e7218e7049972053140d94410aea75e0c3e87c61 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 9 Oct 2018 11:01:50 +1100 Subject: Cleanup: naming - immAttrib* -> immAttr* - immSkipAttrib -> immAttrSkip Term 'attr' is a convention for GPU module. --- source/blender/editors/screen/area.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/editors/screen/area.c') diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 66cd90c1c83..9bd30aa2497 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -2865,13 +2865,13 @@ void ED_region_grid_draw(ARegion *ar, float zoomx, float zoomy) /* the fine resolution level */ for (int i = 0; i < count_fine; i++) { - immAttrib3fv(color, theme_color); + immAttr3fv(color, theme_color); immVertex2f(pos, x1, y1 * (1.0f - fac) + y2 * fac); - immAttrib3fv(color, theme_color); + immAttr3fv(color, theme_color); immVertex2f(pos, x2, y1 * (1.0f - fac) + y2 * fac); - immAttrib3fv(color, theme_color); + immAttr3fv(color, theme_color); immVertex2f(pos, x1 * (1.0f - fac) + x2 * fac, y1); - immAttrib3fv(color, theme_color); + immAttr3fv(color, theme_color); immVertex2f(pos, x1 * (1.0f - fac) + x2 * fac, y2); fac += gridstep; } @@ -2882,13 +2882,13 @@ void ED_region_grid_draw(ARegion *ar, float zoomx, float zoomy) /* the large resolution level */ for (int i = 0; i < count_large; i++) { - immAttrib3fv(color, theme_color); + immAttr3fv(color, theme_color); immVertex2f(pos, x1, y1 * (1.0f - fac) + y2 * fac); - immAttrib3fv(color, theme_color); + immAttr3fv(color, theme_color); immVertex2f(pos, x2, y1 * (1.0f - fac) + y2 * fac); - immAttrib3fv(color, theme_color); + immAttr3fv(color, theme_color); immVertex2f(pos, x1 * (1.0f - fac) + x2 * fac, y1); - immAttrib3fv(color, theme_color); + immAttr3fv(color, theme_color); immVertex2f(pos, x1 * (1.0f - fac) + x2 * fac, y2); fac += 4.0f * gridstep; } -- cgit v1.2.3