Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 2222:75b5bb490f38
Add & 15 to deeper helper functions and remove it from unnecessary places.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 14 Jun 2019 12:08:59 +0300 |
parents | 90ec1ec89c56 |
children | a36c81c3df85 |
comparison
equal
deleted
inserted
replaced
2221:b858ade0fb0b | 2222:75b5bb490f38 |
---|---|
739 img->extraData[0].data[rasterY] : img->bgcolor; | 739 img->extraData[0].data[rasterY] : img->bgcolor; |
740 | 740 |
741 return dmC64GetGenericMCPixel(col, img, | 741 return dmC64GetGenericMCPixel(col, img, |
742 bmoffs, scroffs, | 742 bmoffs, scroffs, |
743 vshift, rasterY & 7, | 743 vshift, rasterY & 7, |
744 0, 0, bgcol & 15); | 744 0, 0, bgcol); |
745 } | 745 } |
746 | 746 |
747 | 747 |
748 static int fmtTruePaintGetLaceType(const DMC64EncDecOp *op, DMC64Image *img, | 748 static int fmtTruePaintGetLaceType(const DMC64EncDecOp *op, DMC64Image *img, |
749 const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt) | 749 const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt) |
1177 img->extraData[0].data[rasterY] : img->bgcolor; | 1177 img->extraData[0].data[rasterY] : img->bgcolor; |
1178 | 1178 |
1179 return dmC64GetGenericMCPixel(col, img, | 1179 return dmC64GetGenericMCPixel(col, img, |
1180 bmoffs, scroffs, | 1180 bmoffs, scroffs, |
1181 vshift, vbank, | 1181 vshift, vbank, |
1182 bitmap, 0, bgcol & 15); | 1182 bitmap, 0, bgcol); |
1183 } | 1183 } |
1184 | 1184 |
1185 | 1185 |
1186 static int fmtGetPixelBFLI(Uint8 *col, | 1186 static int fmtGetPixelBFLI(Uint8 *col, |
1187 const DMC64Image *img, const int rasterX, const int rasterY) | 1187 const DMC64Image *img, const int rasterX, const int rasterY) |
1495 img->extraData[0].data[ry] : img->bgcolor; | 1495 img->extraData[0].data[ry] : img->bgcolor; |
1496 | 1496 |
1497 return dmC64GetGenericMCPixel(col, img, | 1497 return dmC64GetGenericMCPixel(col, img, |
1498 bmoffs, scroffs, | 1498 bmoffs, scroffs, |
1499 vshift, vbank, | 1499 vshift, vbank, |
1500 0, vbank, bgcol & 15); | 1500 0, vbank, bgcol); |
1501 } | 1501 } |
1502 | 1502 |
1503 | 1503 |
1504 static int fmtGetPixelCrestHIFLIorCDHM(Uint8 *col, | 1504 static int fmtGetPixelCrestHIFLIorCDHM(Uint8 *col, |
1505 const DMC64Image *img, const int rasterX, const int rasterY) | 1505 const DMC64Image *img, const int rasterX, const int rasterY) |