# HG changeset patch # User Matti Hamalainen # Date 1529398996 -10800 # Node ID dcb12cd340d340d9f08af64da904fa714d7569c4 # Parent c510bc9799473abe0e2b977eb902633fae6ebb98 Add missing Pentel Paint getpixel function. diff -r c510bc979947 -r dcb12cd340d3 tools/lib64fmts.c --- a/tools/lib64fmts.c Mon Jun 18 10:59:36 2018 +0300 +++ b/tools/lib64fmts.c Tue Jun 19 12:03:16 2018 +0300 @@ -390,6 +390,15 @@ } +static Uint8 fmtGetPixelFLIDesigner( + const DMC64Image *img, const int bmoffs, const int scroffs, + const int shift, const int bitmap, const int rasterX, const int rasterY) +{ + (void) rasterX; + return dmC64GetGenericMCPixel(img, bmoffs, scroffs, shift, rasterY & 7, bitmap, 0, img->bgcolor); +} + + static int fmtProbeBlackMailFLIPacked(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) { if (buf->len > 16 && @@ -808,12 +817,14 @@ } -static Uint8 fmtGetPixelFLIDesigner( +static Uint8 fmtGetPixelPentelPaint( const DMC64Image *img, const int bmoffs, const int scroffs, const int shift, const int bitmap, const int rasterX, const int rasterY) { + Uint8 color = dmC64GetGenericSCPixel(img, bmoffs, scroffs, shift, 0, bitmap, 0); (void) rasterX; - return dmC64GetGenericMCPixel(img, bmoffs, scroffs, shift, rasterY & 7, bitmap, 0, img->bgcolor); + (void) rasterY; + return color; }