aboutsummaryrefslogtreecommitdiff
path: root/img-save-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'img-save-dialog.c')
-rw-r--r--img-save-dialog.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/img-save-dialog.c b/img-save-dialog.c
index f5335a2..463a736 100644
--- a/img-save-dialog.c
+++ b/img-save-dialog.c
@@ -63,12 +63,10 @@ on_ckey_use (GtkWidget * widget, gpointer data)
static gboolean
on_image_click (GtkWidget * widget, GdkEventButton * event, gpointer data)
{
- int width, height, rowstride, n_channels;
+ int rowstride, n_channels;
guchar *pixels, *p;
n_channels = gdk_pixbuf_get_n_channels (pixbuf);
- width = gdk_pixbuf_get_width (pixbuf);
- height = gdk_pixbuf_get_height (pixbuf);
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
pixels = gdk_pixbuf_get_pixels (pixbuf);
p = pixels + (int) (event->y * rowstride) + (int) (event->x * n_channels);