Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 1806:dcb12cd340d3
Add missing Pentel Paint getpixel function.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 19 Jun 2018 12:03:16 +0300 |
parents | c510bc979947 |
children | 7460a9b804e9 |
comparison
equal
deleted
inserted
replaced
1805:c510bc979947 | 1806:dcb12cd340d3 |
---|---|
388 | 388 |
389 return DM_PROBE_SCORE_FALSE; | 389 return DM_PROBE_SCORE_FALSE; |
390 } | 390 } |
391 | 391 |
392 | 392 |
393 static Uint8 fmtGetPixelFLIDesigner( | |
394 const DMC64Image *img, const int bmoffs, const int scroffs, | |
395 const int shift, const int bitmap, const int rasterX, const int rasterY) | |
396 { | |
397 (void) rasterX; | |
398 return dmC64GetGenericMCPixel(img, bmoffs, scroffs, shift, rasterY & 7, bitmap, 0, img->bgcolor); | |
399 } | |
400 | |
401 | |
393 static int fmtProbeBlackMailFLIPacked(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) | 402 static int fmtProbeBlackMailFLIPacked(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) |
394 { | 403 { |
395 if (buf->len > 16 && | 404 if (buf->len > 16 && |
396 dmCompareAddr16(buf, 0, fmt->addr) && | 405 dmCompareAddr16(buf, 0, fmt->addr) && |
397 dmCompareAddr16(buf, 2 + 1, fmt->addr + buf->len - 3) && | 406 dmCompareAddr16(buf, 2 + 1, fmt->addr + buf->len - 3) && |
806 img, vbmoffs, vscroffs, shift, | 815 img, vbmoffs, vscroffs, shift, |
807 vbank, vbb, 0, img->bgcolor); | 816 vbank, vbb, 0, img->bgcolor); |
808 } | 817 } |
809 | 818 |
810 | 819 |
811 static Uint8 fmtGetPixelFLIDesigner( | 820 static Uint8 fmtGetPixelPentelPaint( |
812 const DMC64Image *img, const int bmoffs, const int scroffs, | 821 const DMC64Image *img, const int bmoffs, const int scroffs, |
813 const int shift, const int bitmap, const int rasterX, const int rasterY) | 822 const int shift, const int bitmap, const int rasterX, const int rasterY) |
814 { | 823 { |
824 Uint8 color = dmC64GetGenericSCPixel(img, bmoffs, scroffs, shift, 0, bitmap, 0); | |
815 (void) rasterX; | 825 (void) rasterX; |
816 return dmC64GetGenericMCPixel(img, bmoffs, scroffs, shift, rasterY & 7, bitmap, 0, img->bgcolor); | 826 (void) rasterY; |
827 return color; | |
817 } | 828 } |
818 | 829 |
819 | 830 |
820 static Uint8 fmtGetPixelCrestHIFLIorCDHM( | 831 static Uint8 fmtGetPixelCrestHIFLIorCDHM( |
821 const DMC64Image *img, const int bmoffs, const int scroffs, | 832 const DMC64Image *img, const int bmoffs, const int scroffs, |