imagemap: Move variable to local block and delete dead assignment

This commit is contained in:
Mukund Sivaraman 2011-10-12 17:02:46 +05:30
parent 0cb9ffa0ec
commit 971b77d8c9
1 changed files with 2 additions and 3 deletions

View File

@ -80,7 +80,7 @@ preview_get_height(GtkWidget *preview)
static void static void
render_gray_image(Preview_t *preview_base, GimpPixelRgn *srcrgn) render_gray_image(Preview_t *preview_base, GimpPixelRgn *srcrgn)
{ {
guchar *src_row, *dest_buffer, *src, *dest; guchar *src_row, *dest_buffer, *dest;
gint row, col; gint row, col;
gint bpp, dwidth, dheight, pwidth, pheight; gint bpp, dwidth, dheight, pwidth, pheight;
gint *src_col; gint *src_col;
@ -105,9 +105,8 @@ render_gray_image(Preview_t *preview_base, GimpPixelRgn *srcrgn)
gimp_pixel_rgn_get_row(srcrgn, src_row, 0, row * dheight / pheight, gimp_pixel_rgn_get_row(srcrgn, src_row, 0, row * dheight / pheight,
dwidth); dwidth);
src = src_row;
for (col = 0; col < pwidth; col++) { for (col = 0; col < pwidth; col++) {
guchar *src;
src = &src_row[src_col[col]]; src = &src_row[src_col[col]];
*dest++ = *src; *dest++ = *src;
} }