# HG changeset patch # User Matti Hamalainen # Date 1506264602 -10800 # Node ID e274a7e6dff97f5e718e16be08efc57ac7979940 # Parent 67ae449cf9e16fa6cf1d37fc9a9014f979c34fe0 Cosmetic. diff -r 67ae449cf9e1 -r e274a7e6dff9 tools/lib64gfx.c --- a/tools/lib64gfx.c Sun Sep 24 17:47:48 2017 +0300 +++ b/tools/lib64gfx.c Sun Sep 24 17:50:02 2017 +0300 @@ -306,7 +306,6 @@ static BOOL fmtDrazLaceSetLaceType(DMC64Image *img, const struct _DMC64EncDecOp *op, const Uint8 *buf, const size_t len) { (void) len; - img->laceType = buf[op->offs] ? D64_ILACE_RES : D64_ILACE_COLOR; return TRUE; } @@ -387,6 +386,7 @@ static int fmtDecodeFormatXX2(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) { int res; + // If there is only data for less than XX2_MIN_SIZE bytes, // allocate a buffer of that size and copy data there. // Otherwise allocate len bytes.