changeset 2113:3fcf1c3a3287

Change decFunction() argument order in DMC64EncDecOp.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 26 May 2019 01:16:57 +0300
parents 9dc2976e9fa3
children 27cf33c3a646
files tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Sat May 25 18:57:37 2019 +0300
+++ b/tools/lib64fmts.c	Sun May 26 01:16:57 2019 +0300
@@ -242,7 +242,7 @@
 }
 
 
-static BOOL fmtDrazLaceGetLaceType(DMC64Image *img, const DMC64EncDecOp *op,
+static BOOL fmtDrazLaceGetLaceType(const DMC64EncDecOp *op, DMC64Image *img,
     const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt)
 {
     (void) fmt;
@@ -577,7 +577,7 @@
 }
 
 
-static BOOL fmtTruePaintGetLaceType(DMC64Image *img, const DMC64EncDecOp *op,
+static BOOL fmtTruePaintGetLaceType(const DMC64EncDecOp *op, DMC64Image *img,
     const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt)
 {
     (void) op;
@@ -961,7 +961,7 @@
 }
 
 
-static BOOL fmtECIGetLaceType(DMC64Image *img, const DMC64EncDecOp *op,
+static BOOL fmtECIGetLaceType(const DMC64EncDecOp *op, DMC64Image *img,
     const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt)
 {
     (void) op;
--- a/tools/lib64gfx.c	Sat May 25 18:57:37 2019 +0300
+++ b/tools/lib64gfx.c	Sun May 26 01:16:57 2019 +0300
@@ -1056,7 +1056,7 @@
 
             case DO_FUNC:
                 if (op->decFunction != NULL &&
-                    !op->decFunction(img, op, buf, fmt->format))
+                    !op->decFunction(op, img, buf, fmt->format))
                 {
                     return dmError(DMERR_INTERNAL,
                         "Decode op custom function failed: op #%d, "
--- a/tools/lib64gfx.h	Sat May 25 18:57:37 2019 +0300
+++ b/tools/lib64gfx.h	Sun May 26 01:16:57 2019 +0300
@@ -184,7 +184,7 @@
     size_t size;     // Size of data (0 for "default")
     size_t offs2;    // Offset in data-block
 
-    BOOL   (*decFunction)(DMC64Image *img, const struct _DMC64EncDecOp *op, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt);
+    BOOL   (*decFunction)(const struct _DMC64EncDecOp *op, DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt);
     BOOL   (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageCommonFormat *fmt);
 } DMC64EncDecOp;