ref: 8e7a00e14371c0ed0e33db130e6eebf96c06772e
parent: 54b62fe49314e012d6b5770c1b6a3d52fa6f38d3
author: ftrvxmtrx <[email protected]>
date: Tue Jan 22 12:02:31 EST 2013
tga: fix flip/reflect
--- a/sys/src/cmd/jpg/readtga.c
+++ b/sys/src/cmd/jpg/readtga.c
@@ -473,9 +473,9 @@
werrstr("ReadTGA: decode fail (%d!=%d) - %r\n", n, num);
goto Error;
}
- if(h->xorigin != 0)
+ if((h->descriptor&(1<<4)) != 0)
reflect(ar);
- if(h->yorigin == 0)
+ if((h->descriptor&(1<<5)) == 0)
flip(ar);
free(h);