+2007-03-05 Matthias Clasen <mclasen@redhat.com>
+
+ * io-tga.c: (gdk_pixbuf__tga_stop_load): Flip rle-encoded
+ images even if they haven't been completely loaded. (#347106)
+
2007-02-27 Felix Riemann <friemann@svn.gnome.org>
* io-ico.c: (fill_info): Add image/x-ico to supported mime types.
}
}
- if (ctx->pbuf_bytes_done == ctx->pbuf_bytes)
+ if (ctx->pbuf_bytes_done == ctx->pbuf_bytes)
ctx->done = TRUE;
+
return n;
}
* perfect, but doing it during the rle decoding in place
* is considerably more work.
*/
- if (!(ctx->hdr->flags & TGA_ORIGIN_UPPER))
+ if (!(ctx->hdr->flags & TGA_ORIGIN_UPPER)) {
pixbuf_flip_vertically (ctx->pbuf);
+ ctx->hdr->flags |= TGA_ORIGIN_UPPER;
+ }
}
TGAContext *ctx = (TGAContext *) data;
g_return_val_if_fail(ctx != NULL, FALSE);
+ if (!(ctx->hdr->flags & TGA_ORIGIN_UPPER) && ctx->run_length_encoded) {
+ pixbuf_flip_vertically (ctx->pbuf);
+ if (ctx->ufunc)
+ (*ctx->ufunc) (ctx->pbuf, 0, 0,
+ ctx->pbuf->width, ctx->pbuf->height,
+ ctx->udata);
+ }
if (ctx->hdr)
g_free (ctx->hdr);
if (ctx->cmap) {