From 2fcfe4a32957e588e4e0b8147bd18190a60cffef Mon Sep 17 00:00:00 2001 From: HW Date: Mon, 19 Mar 2012 22:29:06 +0100 Subject: [PATCH] fixed bug for odd rendering widths --- pdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.c b/pdf.c index 16ab2b942..e57bcf76d 100644 --- a/pdf.c +++ b/pdf.c @@ -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;