tga: fix flip/reflect
This commit is contained in:
parent
54b62fe493
commit
8e7a00e143
1 changed files with 2 additions and 2 deletions
|
@ -473,9 +473,9 @@ Breadtga(Biobuf *bp)
|
||||||
werrstr("ReadTGA: decode fail (%d!=%d) - %r\n", n, num);
|
werrstr("ReadTGA: decode fail (%d!=%d) - %r\n", n, num);
|
||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
if(h->xorigin != 0)
|
if((h->descriptor&(1<<4)) != 0)
|
||||||
reflect(ar);
|
reflect(ar);
|
||||||
if(h->yorigin == 0)
|
if((h->descriptor&(1<<5)) == 0)
|
||||||
flip(ar);
|
flip(ar);
|
||||||
|
|
||||||
free(h);
|
free(h);
|
||||||
|
|
Loading…
Reference in a new issue