diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-08-07 17:08:41 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-08-07 17:13:11 +0300 |
commit | 4ce298b3c0c3fed22627567c2963c79be4d9fc1f (patch) | |
tree | 01e06daf3e59f55c34c72387a45c7b037b0aed48 | |
parent | 17dbdcc552bfb96441a8fd3c57a4787378e5a549 (diff) |
Cleanup: Clang-Tidy. readability-non-const-parameter in pixel drawing
-rw-r--r-- | source/blender/editors/include/BIF_glutil.h | 8 | ||||
-rw-r--r-- | source/blender/editors/screen/glutil.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index 3b7eb01f92c..1d688b2ad68 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -72,7 +72,7 @@ void immDrawPixelsTex(IMMDrawPixelsTexState *state, void *rect, float xzoom, float yzoom, - float color[4]); + const float color[4]); void immDrawPixelsTex_clipping(IMMDrawPixelsTexState *state, float x, float y, @@ -87,7 +87,7 @@ void immDrawPixelsTex_clipping(IMMDrawPixelsTexState *state, float clip_max_y, float xzoom, float yzoom, - float color[4]); + const float color[4]); void immDrawPixelsTexScaled(IMMDrawPixelsTexState *state, float x, float y, @@ -100,7 +100,7 @@ void immDrawPixelsTexScaled(IMMDrawPixelsTexState *state, float scaleY, float xzoom, float yzoom, - float color[4]); + const float color[4]); void immDrawPixelsTexScaled_clipping(IMMDrawPixelsTexState *state, float x, float y, @@ -117,7 +117,7 @@ void immDrawPixelsTexScaled_clipping(IMMDrawPixelsTexState *state, float clip_max_y, float xzoom, float yzoom, - float color[4]); + const float color[4]); /* Image buffer drawing functions, with display transform * diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index 903013460d4..05eac574d9d 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -106,7 +106,7 @@ void immDrawPixelsTexScaled_clipping(IMMDrawPixelsTexState *state, float clip_max_y, float xzoom, float yzoom, - float color[4]) + const float color[4]) { int subpart_x, subpart_y, tex_w = 256, tex_h = 256; int seamless, offset_x, offset_y, nsubparts_x, nsubparts_y; @@ -272,7 +272,7 @@ void immDrawPixelsTexScaled(IMMDrawPixelsTexState *state, float scaleY, float xzoom, float yzoom, - float color[4]) + const float color[4]) { immDrawPixelsTexScaled_clipping(state, x, @@ -303,7 +303,7 @@ void immDrawPixelsTex(IMMDrawPixelsTexState *state, void *rect, float xzoom, float yzoom, - float color[4]) + const float color[4]) { immDrawPixelsTexScaled_clipping(state, x, @@ -338,7 +338,7 @@ void immDrawPixelsTex_clipping(IMMDrawPixelsTexState *state, float clip_max_y, float xzoom, float yzoom, - float color[4]) + const float color[4]) { immDrawPixelsTexScaled_clipping(state, x, |