ref: b8dd286f723159595265e22e814557002e1120ab
parent: a56da659b5cdd5a0087e248eecf70469df51d677
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Sep 2 15:55:47 EDT 2024
bitpixel: not supposed to be inverted for 1-bit formats
--- a/rast.c
+++ b/rast.c
@@ -780,7 +780,7 @@
x = i - (i & ~7);
else
x &= 7;
- return (bg->image[i>>3] & (0x80>>x)) ? 0 : 255;
+ return (bg->image[i>>3] & (0x80>>x)) ? 255 : 0;
}else if(bg->bitDepth == 4){
/* FIXME */
assert(nil);
--- a/test.h
+++ b/test.h
@@ -129,11 +129,9 @@
g = 0xff - g;
b = 0xff - b;
}
- if(r != 0xff || g != 0xff || b != 0xff){
- lt[t*3+0] = b;
- lt[t*3+1] = g;
- lt[t*3+2] = r;
- }
+ lt[t*3+0] = b;
+ lt[t*3+1] = g;
+ lt[t*3+2] = r;
}
}
}
--
⑨