Remove unused variable pbuf_count. (#315282, Kjartan Maraas)
2005-09-05 Matthias Clasen <mclasen@redhat.com> * io-tga.c (parse_rle_data): Remove unused variable pbuf_count. (#315282, Kjartan Maraas)
This commit is contained in:
parent
2738d1475c
commit
af1cd41b65
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2005-08-31 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* Makefile.am (gdk-pixbuf-enum-types.c): Intern type
|
* Makefile.am (gdk-pixbuf-enum-types.c): Intern type
|
||||||
|
@ -632,18 +632,14 @@ static gboolean parse_rle_data(TGAContext *ctx, GError **err)
|
|||||||
{
|
{
|
||||||
guint rows = 0;
|
guint rows = 0;
|
||||||
guint count = 0;
|
guint count = 0;
|
||||||
guint pbuf_count = 0;
|
|
||||||
guint bytes_done_before = ctx->pbuf_bytes_done;
|
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);
|
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);
|
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);
|
count = parse_rle_data_grayscale(ctx);
|
||||||
pbuf_count = count * (ctx->pbuf->n_channels == 4 ? 2 : 3);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ctx->hdr->flags & TGA_ORIGIN_RIGHT) {
|
if (ctx->hdr->flags & TGA_ORIGIN_RIGHT) {
|
||||||
guchar *row = ctx->pbuf->pixels + (bytes_done_before / ctx->pbuf->rowstride) * ctx->pbuf->rowstride;
|
guchar *row = ctx->pbuf->pixels + (bytes_done_before / ctx->pbuf->rowstride) * ctx->pbuf->rowstride;
|
||||||
|
Loading…
Reference in New Issue
Block a user