+2005-09-05 Matthias Clasen <mclasen@redhat.com>
+
+ * io-tga.c (parse_rle_data): Remove unused variable
+ pbuf_count. (#315282, Kjartan Maraas)
+
2005-08-31 Matthias Clasen <mclasen@redhat.com>
* Makefile.am (gdk-pixbuf-enum-types.c): Intern type
{
guint rows = 0;
guint count = 0;
- guint pbuf_count = 0;
guint bytes_done_before = ctx->pbuf_bytes_done;
- if (ctx->hdr->type == TGA_TYPE_RLE_PSEUDOCOLOR) {
+
+ if (ctx->hdr->type == TGA_TYPE_RLE_PSEUDOCOLOR)
count = parse_rle_data_pseudocolor(ctx);
- pbuf_count = count * ctx->pbuf->n_channels;
- } else if (ctx->hdr->type == TGA_TYPE_RLE_TRUECOLOR) {
+ else if (ctx->hdr->type == TGA_TYPE_RLE_TRUECOLOR)
count = parse_rle_data_truecolor(ctx);
- pbuf_count = count;
- } else if (ctx->hdr->type == TGA_TYPE_RLE_GRAYSCALE) {
+ else if (ctx->hdr->type == TGA_TYPE_RLE_GRAYSCALE)
count = parse_rle_data_grayscale(ctx);
- pbuf_count = count * (ctx->pbuf->n_channels == 4 ? 2 : 3);
- }
if (ctx->hdr->flags & TGA_ORIGIN_RIGHT) {
guchar *row = ctx->pbuf->pixels + (bytes_done_before / ctx->pbuf->rowstride) * ctx->pbuf->rowstride;