# HG changeset patch # User Matti Hamalainen # Date 1503074667 -10800 # Node ID 92e99ea23811f3fdab79a10caab5a867ccb9f4e5 # Parent 2c4acbc3e7bf414280bded1b26dca9584b757224 Cleanup. diff -r 2c4acbc3e7bf -r 92e99ea23811 src/libgfx.c --- 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++)