Mercurial > hg > dmlib
comparison tools/libgfx.c @ 1625:c8afa3e6c413
Print an error/warning about PBM files that have half-brite set.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 16 May 2018 14:44:49 +0300 |
parents | 9a8395b56d1a |
children | 1793fc1496da |
comparison
equal
deleted
inserted
replaced
1624:9a8395b56d1a | 1625:c8afa3e6c413 |
---|---|
1934 { | 1934 { |
1935 // If halfbrite is used, duplicate the palette | 1935 // If halfbrite is used, duplicate the palette |
1936 if (iff.camg & IFF_CAMG_HALFBRITE) | 1936 if (iff.camg & IFF_CAMG_HALFBRITE) |
1937 { | 1937 { |
1938 void *ptmp; | 1938 void *ptmp; |
1939 if (!iff.planar) | |
1940 { | |
1941 dmErrorMsg("ILBM: Non-planar PBM file with Halfbrite enabled! This might not work.\n"); | |
1942 } | |
1939 | 1943 |
1940 if (iff.ncolors > 128) | 1944 if (iff.ncolors > 128) |
1941 { | 1945 { |
1942 return dmError(DMERR_NOT_SUPPORTED, | 1946 return dmError(DMERR_NOT_SUPPORTED, |
1943 "ILBM: Halfbrite enabled, but ncolors > 128.\n"); | 1947 "ILBM: Halfbrite enabled, but ncolors > 128.\n"); |