# HG changeset patch # User Matti Hamalainen # Date 1544534252 -7200 # Node ID 9d6c30c071edf2996091a6fc5ea3f2c35dbc2091 # Parent feed844a5ae1595f2e9c347d4fc316bc5f0c895d Simplify dmPutBits() call in dmWriteRAWRow(). diff -r feed844a5ae1 -r 9d6c30c071ed tools/libgfx.c --- a/tools/libgfx.c Tue Dec 11 15:16:06 2018 +0200 +++ b/tools/libgfx.c Tue Dec 11 15:17:32 2018 +0200 @@ -357,7 +357,7 @@ for (int xc = 0; xc < img->width; xc++) { for (int xscale = 0; xscale < spec->scaleX; xscale++) - if (!dmPutBits(bs, (sp[xc] & (1 << plane)) ? 1 : 0, 1)) + if (!dmPutBits(bs, (sp[xc] >> plane) & 1, 1)) return FALSE; } return TRUE;