From 2967a3c4d428c331334332fa51e8139eafa5bb2d Mon Sep 17 00:00:00 2001 From: JonDeen Date: Tue, 16 Jun 2015 09:28:40 +0200 Subject: [PATCH] mistypohell --- libvips/colour/HSV2sRGB.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libvips/colour/HSV2sRGB.c b/libvips/colour/HSV2sRGB.c index cce462f3..ae9c5a99 100644 --- a/libvips/colour/HSV2sRGB.c +++ b/libvips/colour/HSV2sRGB.c @@ -45,12 +45,7 @@ #include "pcolour.h" #define sixth_of_char 42.5 -#define H p[0] -#define S p[1] -#define V p[2] -#define R p[0] -#define G p[1] -#define B p[2] + typedef VipsColourCode VipsHSV2sRGB; typedef VipsColourCodeClass VipsHSV2sRGBClass; @@ -63,9 +58,14 @@ static void vips_HSV2sRGB_line(VipsColour *colour, VipsPel *out, VipsPel **in, unsigned char *q = (unsigned char *) out; int i; + #define H p[0] + #define S p[1] + #define V p[2] + #define R q[0] + #define G q[1] + #define B q[2] - - float c, x, m, s, t, u; + float c, x, m; for (i = 0; i < width; i++) { c = V* S / 255.0f;