diff src/pixbuf_util.c @ 442:4b2d7f9af171

Big whitespaces cleanup: - drop whitespaces at end of lines - convert eight spaces to tab at start of lines - drop spurious spaces mixed with tabs - remove empty lines at end of files
author zas_
date Sun, 20 Apr 2008 13:04:57 +0000
parents d1f74154463e
children ddabc4873a3f
line wrap: on
line diff
--- a/src/pixbuf_util.c	Sun Apr 20 10:05:27 2008 +0000
+++ b/src/pixbuf_util.c	Sun Apr 20 13:04:57 2008 +0000
@@ -189,7 +189,7 @@
 			if (bytes_per_pixel == 4) *(dp) = *(sp++);	/* a */
 			}
 		}
-	
+
 }
 
 static void pixbuf_copy_block(guchar *src, gint src_row_stride, gint w, gint h,
@@ -221,15 +221,15 @@
 	gint sw, sh, srs;
 	gint dw, dh, drs;
 	guchar *s_pix;
-        guchar *d_pix;
+	guchar *d_pix;
 #if 0
 	guchar *sp;
-        guchar *dp;
+	guchar *dp;
 #endif
 	gint i, j;
 	gint a;
 	GdkPixbuf *buffer;
-        guchar *b_pix;
+	guchar *b_pix;
 	gint brs;
 	gint w, h;
 
@@ -323,9 +323,9 @@
 	gint w, h, srs;
 	gint drs;
 	guchar *s_pix;
-        guchar *d_pix;
+	guchar *d_pix;
 	guchar *sp;
-        guchar *dp;
+	guchar *dp;
 	gint i, j;
 	gint a;
 
@@ -415,7 +415,7 @@
 	prs = gdk_pixbuf_get_rowstride(pb);
 	p_pix = gdk_pixbuf_get_pixels(pb);
 
-        for (i = 0; i < h; i++)
+	for (i = 0; i < h; i++)
 		{
 		pp = p_pix + (y + i) * prs + (x * (p_alpha ? 4 : 3));
 		for (j = 0; j < w; j++)
@@ -468,7 +468,7 @@
 	prs = gdk_pixbuf_get_rowstride(pb);
 	p_pix = gdk_pixbuf_get_pixels(pb);
 
-        for (i = 0; i < h; i++)
+	for (i = 0; i < h; i++)
 		{
 		pp = p_pix + (y + i) * prs + (x * (p_alpha ? 4 : 3));
 		for (j = 0; j < w; j++)
@@ -504,13 +504,13 @@
 	guchar *p;
 
 	if (x < 0 || x >= gdk_pixbuf_get_width(pb) ||
-            y < 0 || y >= gdk_pixbuf_get_height(pb)) return;
+	    y < 0 || y >= gdk_pixbuf_get_height(pb)) return;
 
 	buf = gdk_pixbuf_get_pixels(pb);
 	has_alpha = gdk_pixbuf_get_has_alpha(pb);
 	rowstride = gdk_pixbuf_get_rowstride(pb);
 
-        p = buf + (y * rowstride) + (x * (has_alpha ? 4 : 3));
+	p = buf + (y * rowstride) + (x * (has_alpha ? 4 : 3));
 	*p = r; p++;
 	*p = g; p++;
 	*p = b; p++;
@@ -1018,7 +1018,7 @@
 
 static void pixbuf_draw_fade_linear(guchar *p_pix, gint prs, gint p_alpha,
 				    gint s, gint vertical, gint border,
-			 	    gint x1, gint y1, gint x2, gint y2,
+				    gint x1, gint y1, gint x2, gint y2,
 				    guint8 r, guint8 g, guint8 b, guint8 a)
 {
 	guchar *pp;
@@ -1047,7 +1047,7 @@
 
 static void pixbuf_draw_fade_radius(guchar *p_pix, gint prs, gint p_alpha,
 				    gint sx, gint sy, gint border,
-			 	    gint x1, gint y1, gint x2, gint y2,
+				    gint x1, gint y1, gint x2, gint y2,
 				    guint8 r, guint8 g, guint8 b, guint8 a)
 {
 	guchar *pp;
@@ -1211,7 +1211,7 @@
 	prs = gdk_pixbuf_get_rowstride(pb);
 	p_pix = gdk_pixbuf_get_pixels(pb);
 
-        for (i = 0; i < h; i++)
+	for (i = 0; i < h; i++)
 		{
 		pp = p_pix + (y + i) * prs + (x * (p_alpha ? 4 : 3));
 		for (j = 0; j < w; j++)