[gimp] imagemap: Move variable to local block and delete dead assignment
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] imagemap: Move variable to local block and delete dead assignment
- Date: Wed, 12 Oct 2011 12:00:22 +0000 (UTC)
commit 971b77d8c9a9f35d78756d75808bc6aa51a9b0ae
Author: Mukund Sivaraman <muks banu com>
Date: Wed Oct 12 17:02:46 2011 +0530
imagemap: Move variable to local block and delete dead assignment
plug-ins/imagemap/imap_preview.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/imagemap/imap_preview.c b/plug-ins/imagemap/imap_preview.c
index c577f64..98bf9a8 100644
--- a/plug-ins/imagemap/imap_preview.c
+++ b/plug-ins/imagemap/imap_preview.c
@@ -80,7 +80,7 @@ preview_get_height(GtkWidget *preview)
static void
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 bpp, dwidth, dheight, pwidth, pheight;
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,
dwidth);
- src = src_row;
-
for (col = 0; col < pwidth; col++) {
+ guchar *src;
src = &src_row[src_col[col]];
*dest++ = *src;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]