changeset 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 d53bdee5ffa5
files tools/lib64fmts.c
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }