fixed bug for odd rendering widths

This commit is contained in:
HW
2012-03-19 22:29:06 +01:00
parent ee51fe7e6d
commit 2fcfe4a329

2
pdf.c
View File

@@ -269,7 +269,7 @@ static int drawPage(lua_State *L) {
bbptr[x] = (((pmptr[x*2 + 1] & 0xF0) >> 4) | (pmptr[x*2] & 0xF0)) ^ 0xFF;
}
if(bb->w & 1) {
bbptr[x] = pmptr[x*2] & 0xF0;
bbptr[x] = (pmptr[x*2] & 0xF0) ^ 0xF0;
}
bbptr += bb->pitch;
pmptr += bb->w;