From a3cddf70d95f238b1fadb1e4c7aa9e7b90cd5b0d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Aug 2016 01:06:48 +0200 Subject: m test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/test.c b/src/test.c index f6dc9d1..1fe15b1 100644 --- a/src/test.c +++ b/src/test.c @@ -305,7 +305,7 @@ int main(int argc, char *argv[]) for (i = 0; i < 256; i++) { - t1.blue[i] = t1.green[i] = t1.red[i] = (uint16_t)(UINT16_MAX - ((i << 8) | i)); + t1.blue[i] = t1.green[i] = t1.red[i] = (uint16_t)(((255 - i) << 8) | (255 - i)); t2.blue[i] = t2.green[i] = t2.red[i] = (uint16_t)(pow((double)i / 255, (double)10 / 11) * UINT16_MAX); } for (i = 0; i < 256; i++) -- cgit v1.2.3-70-g09d2