Mercurial > hg > dmlib
changeset 1450:61a486e25dc7
24bit PCX writing does not work correctly, so return DMERR_NOT_SUPPORTED in the writer function.
At least until the problem is analysed and fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 May 2018 05:55:20 +0300 |
parents | c1f59416d713 |
children | 4f82e7cda289 |
files | tools/libgfx.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/libgfx.c Thu May 10 05:53:08 2018 +0300 +++ b/tools/libgfx.c Thu May 10 05:55:20 2018 +0300 @@ -911,6 +911,10 @@ memcpy(&spec, pspec, sizeof(DMImageConvSpec)); spec.planar = TRUE; + // XXX: 24bit PCX does not work yet .. + if (!spec.paletted) + return DMERR_NOT_SUPPORTED; + // Create output file pcx.buf = NULL; pcx.header = &hdr;