Mercurial > hg > dmlib
changeset 2341:a56f3bcb5476
Remove some useless checks.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 24 Sep 2019 13:15:02 +0300 |
parents | 85cd3d36e670 |
children | a5c68b0d6e10 |
files | tools/lib64gfx.c |
diffstat | 1 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64gfx.c Tue Sep 24 12:44:44 2019 +0300 +++ b/tools/lib64gfx.c Tue Sep 24 13:15:02 2019 +0300 @@ -1402,17 +1402,6 @@ { DMC64GetPixelFunc getPixel; - // Sanity check arguments - if (dst == NULL || src == NULL || spec == NULL) - return DMERR_NULLPTR; - - if (dst->width != src->fmt->width || dst->height != src->fmt->height) - { - return dmError(DMERR_INVALID_DATA, - "Invalid src vs. dst width/height %d x %d <-> %d x %d\n", - src->fmt->width, src->fmt->height, dst->width, dst->height); - } - dmMemset(dst->data, 0, dst->size); // Check pixel getter function