aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 01:06:48 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 01:06:53 +0200
commita3cddf70d95f238b1fadb1e4c7aa9e7b90cd5b0d (patch)
tree659a9d05d65a0deeda7459d88041db97df1c3b74
parentwhoops (diff)
downloadlibclut-a3cddf70d95f238b1fadb1e4c7aa9e7b90cd5b0d.tar.gz
libclut-a3cddf70d95f238b1fadb1e4c7aa9e7b90cd5b0d.tar.bz2
libclut-a3cddf70d95f238b1fadb1e4c7aa9e7b90cd5b0d.tar.xz
m test
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--src/test.c2
1 files changed, 1 insertions, 1 deletions
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++)