From 6ee08c8370f578e59dd4c6bb5f542b469f0d3748 Mon Sep 17 00:00:00 2001 From: Julian T Date: Tue, 10 Mar 2020 08:55:59 +0100 Subject: Fixed color_set --- pgm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pgm.c') diff --git a/pgm.c b/pgm.c index 654f4b7..a1d3124 100644 --- a/pgm.c +++ b/pgm.c @@ -15,7 +15,7 @@ int pgm_write_pixel(FILE *fp, color_t *c) return fprintf(fp, "%.0lf %.0lf %.0lf\n", c->r * COLOR_MAX, c->g * COLOR_MAX, c->b * COLOR_MAX); } -color_t *color_set(color_t *c, uint8_t r, uint8_t g, uint8_t b) +color_t *color_set(color_t *c, COORD_T r, COORD_T g, COORD_T b) { if (!c) { c = (color_t *) malloc(sizeof(color_t)); -- cgit v1.2.3