summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-08 01:48:22 +0100
committerinfirit <[email protected]>2014-11-28 08:51:51 +0100
commit9034e7ba7c225fde4349cc59c6ba242225290281 (patch)
tree486cc0d6b209034ba026f63c549bfeac362c4b24 /libmate-desktop/mate-bg.c
parentf1a37e312cb30c23a2402a48a80470acee750011 (diff)
downloadmate-desktop-9034e7ba7c225fde4349cc59c6ba242225290281.tar.bz2
mate-desktop-9034e7ba7c225fde4349cc59c6ba242225290281.tar.xz
Fix warning and remove unused variable
Diffstat (limited to 'libmate-desktop/mate-bg.c')
-rw-r--r--libmate-desktop/mate-bg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index 85d4ceb..8666b73 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -2643,14 +2643,12 @@ pixbuf_draw_gradient (GdkPixbuf *pixbuf,
int height;
int rowstride;
guchar *dst;
- //guchar *dst_limit;
int n_channels = 3;
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
width = rect->width;
height = rect->height;
dst = gdk_pixbuf_get_pixels (pixbuf) + rect->x * n_channels + rowstride * rect->y;
- //dst_limit = dst + height * rowstride;
if (horizontal) {
guchar *gradient = create_gradient (primary, secondary, width);