Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 1878:91cc631f959a
Use only 4 lowest bits from HCB background color data.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 25 Jun 2018 00:49:41 +0300 |
parents | f8b7baf3ff89 |
children | 3b2f755c5745 |
comparison
equal
deleted
inserted
replaced
1877:f8b7baf3ff89 | 1878:91cc631f959a |
---|---|
875 (void) rasterX; | 875 (void) rasterX; |
876 | 876 |
877 return dmC64GetGenericMCPixel( | 877 return dmC64GetGenericMCPixel( |
878 img, bmoffs, scroffs, | 878 img, bmoffs, scroffs, |
879 shift, vbank, 0, vbank, | 879 shift, vbank, 0, vbank, |
880 img->extraData[0].data[rasterY / 4]); | 880 img->extraData[0].data[rasterY / 5] & 15); |
881 } | 881 } |
882 | 882 |
883 | 883 |
884 static Uint8 fmtGetPixelCrestHIFLIorCDHM( | 884 static Uint8 fmtGetPixelCrestHIFLIorCDHM( |
885 const DMC64Image *img, const int bmoffs, const int scroffs, | 885 const DMC64Image *img, const int bmoffs, const int scroffs, |