X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Fimago%2Fsrc%2Ffiletga.c;h=f34c9ea78e61f2993a5176c1d8555810362f6745;hb=6bdfcf4ad3daddcd9d689deb15798403c89ce42b;hp=d5d9fe8358e8c4ea05ee32574249e4c7fa752690;hpb=820efe0e275409090089fec7c2a7d2997f04c6d7;p=andemo diff --git a/libs/imago/src/filetga.c b/libs/imago/src/filetga.c index d5d9fe8..f34c9ea 100644 --- a/libs/imago/src/filetga.c +++ b/libs/imago/src/filetga.c @@ -138,7 +138,7 @@ static int read_tga(struct img_pixmap *img, struct img_io *io) if(hdr.cmap_type == 1) { cmap.ncolors = hdr.cmap_len; - for(i=0; ipixels + ((hdr.img_desc & 0x20) ? i : y - (i + 1)) * x * pixel_bytes; - for(j=0; j