We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6ce952a + ddee166 commit 36b56d1Copy full SHA for 36b56d1
1 file changed
_sane.c
@@ -485,7 +485,7 @@ SaneDev_snap(SaneDevObject *self, PyObject *args)
485
if(p.depth == 1)
486
{
487
for(i = 0; i < imgBytesPerLine; ++i)
488
- imgBuf[imgBufOffset + i] = lineBuf[i / 8] & (0x80 >> (i % 8)) ? 0 : 255;
+ imgBuf[imgBufOffset + i] = lineBuf[i / 8] & (0x80 >> (i % 8)) ? 255 : 0;
489
}
490
else if(p.depth == 8)
491
0 commit comments