comparison tools/lib64fmts.c @ 2127:c1a9519a619f

Fix ECI palette setting, return value of dmSetMixedColorC64Palette() had changed from boolean to int, and was not properly checked for DMERR_OK.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 27 May 2019 11:12:21 +0300
parents 56d4dc81774b
children 2129d4ac6f45
comparison
equal deleted inserted replaced
2126:cffadb745484 2127:c1a9519a619f
990 990
991 991
992 static int fmtConvertECIBMP2Image(DMImage *dst, const DMC64Image *src, 992 static int fmtConvertECIBMP2Image(DMImage *dst, const DMC64Image *src,
993 const DMC64ImageFormat *fmt, const DMC64ImageConvSpec *spec) 993 const DMC64ImageFormat *fmt, const DMC64ImageConvSpec *spec)
994 { 994 {
995 if (!dmSetMixedColorC64Palette(dst)) 995 int res;
996 return DMERR_MALLOC; 996 if ((res = dmSetMixedColorC64Palette(dst)) != DMERR_OK)
997 return res;
997 998
998 return dmC64ConvertGenericBMP2Image(dst, src, fmt, spec); 999 return dmC64ConvertGenericBMP2Image(dst, src, fmt, spec);
999 } 1000 }
1000 1001
1001 1002