Mercurial > hg > dmlib
changeset 2212:2edd3f2ddee2
Force non-planar for PPM output.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 14 Jun 2019 05:58:30 +0300 |
parents | ef9b55c879d6 |
children | b1e392da8346 |
files | tools/libgfx.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/libgfx.c Fri Jun 14 05:41:46 2019 +0300 +++ b/tools/libgfx.c Fri Jun 14 05:58:30 2019 +0300 @@ -885,9 +885,11 @@ "Conversion of non-indexed image to indexed not supported yet.\n"); } + // Force non-planar etc memcpy(&tmpSpec, spec, sizeof(DMImageWriteSpec)); - - switch (spec->pixfmt) + tmpSpec.planar = FALSE; + + switch (tmpSpec.pixfmt) { case DM_PIXFMT_RGB: case DM_PIXFMT_RGBA: