Mercurial > hg > dmlib
comparison tools/libgfx.c @ 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 | ae2ba8cb510f |
children | 416d7b3ba3b2 |
comparison
equal
deleted
inserted
replaced
1449:c1f59416d713 | 1450:61a486e25dc7 |
---|---|
909 | 909 |
910 // Always force planar for PCX | 910 // Always force planar for PCX |
911 memcpy(&spec, pspec, sizeof(DMImageConvSpec)); | 911 memcpy(&spec, pspec, sizeof(DMImageConvSpec)); |
912 spec.planar = TRUE; | 912 spec.planar = TRUE; |
913 | 913 |
914 // XXX: 24bit PCX does not work yet .. | |
915 if (!spec.paletted) | |
916 return DMERR_NOT_SUPPORTED; | |
917 | |
914 // Create output file | 918 // Create output file |
915 pcx.buf = NULL; | 919 pcx.buf = NULL; |
916 pcx.header = &hdr; | 920 pcx.header = &hdr; |
917 pcx.fp = fp; | 921 pcx.fp = fp; |
918 | 922 |