Cleanup: Clang-Tidy. readability-non-const-parameter in pixel drawing

This commit is contained in:
Sergey Sharybin 2020-08-07 16:08:41 +02:00
parent 17dbdcc552
commit 4ce298b3c0
2 changed files with 8 additions and 8 deletions

View File

@ -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
*

View File

@ -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,