more clenaup, expect more bugs

This commit is contained in:
tth
2021-03-17 18:32:51 +01:00
parent 706e218ff0
commit 3632dc1680
23 changed files with 98 additions and 137 deletions
+4 -12
View File
@@ -39,9 +39,7 @@ if (s->type != FIMG_TYPE_RGB) {
return -4;
}
if (NULL==d) {
d = s;
}
if (NULL==d) { d = s; }
else {
if (d->type != FIMG_TYPE_RGB) {
fprintf(stderr, "%s : dst type %d invalide\n",
@@ -76,9 +74,7 @@ if (s->type != FIMG_TYPE_RGB) {
return -4;
}
if (NULL==d) {
d = s;
}
if (NULL==d) { d = s; }
else {
if (d->type != FIMG_TYPE_RGB) {
fprintf(stderr, "%s: dst type %d invalide\n",
@@ -119,9 +115,7 @@ if (s->type != FIMG_TYPE_RGB) {
return -4;
}
if (NULL==d) {
d = s;
}
if (NULL==d) { d = s; }
else {
if (d->type != FIMG_TYPE_RGB) {
fprintf(stderr, "%s : dst type %d invalide\n",
@@ -155,9 +149,7 @@ if (s->type != FIMG_TYPE_RGB) {
return -4;
}
if (NULL==d) {
d = s;
}
if (NULL==d) { d = s; }
else {
if (d->type != FIMG_TYPE_RGB) {
fprintf(stderr, "%s : dst type %d invalide\n",