Mercurial > hg > dmlib
changeset 1292:92e99ea23811
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 18 Aug 2017 19:44:27 +0300 |
parents | 2c4acbc3e7bf |
children | 1dce9e5f4a2f |
files | src/libgfx.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/libgfx.c Fri Aug 18 18:56:09 2017 +0300 +++ b/src/libgfx.c Fri Aug 18 19:44:27 2017 +0300 @@ -133,12 +133,6 @@ } -int dmImageConvertTo(DMImage **dst, const DMImage *src, const DMImageConvSpec *spec) -{ - return DMERR_OK; -} - - int dmWriteImageData(DMImage *img, void *cbdata, int (*writeRowCB)(void *, Uint8 *, size_t), const DMImageConvSpec *spec) { int x, y, yscale, xscale, res = 0, rowSize, rowWidth; @@ -179,6 +173,7 @@ qg = img->pal[c].g; qb = img->pal[c].b; qa = img->pal[c].a; + if (spec->planar) { for (xscale = 0; xscale < spec->scaleX; xscale++)