tests: constify fill_image_with_color()

Const has documentary value saying the code will not modify the
parameter contents. Everything that can be const, should be const.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2020-11-12 17:17:20 +02:00
parent a3bfa1b27d
commit ee60752ebd
2 changed files with 2 additions and 2 deletions

View file

@ -1867,7 +1867,7 @@ client_create_viewport(struct client *client)
* \param color The color to use.
*/
void
fill_image_with_color(pixman_image_t *image, pixman_color_t *color)
fill_image_with_color(pixman_image_t *image, const pixman_color_t *color)
{
pixman_image_t *solid;
int width;

View file

@ -280,7 +280,7 @@ struct wp_viewport *
client_create_viewport(struct client *client);
void
fill_image_with_color(pixman_image_t *image, pixman_color_t *color);
fill_image_with_color(pixman_image_t *image, const pixman_color_t *color);
pixman_color_t *
color_rgb888(pixman_color_t *tmp, uint8_t r, uint8_t g, uint8_t b);