[gnome-desktop] gnome-bg: Don't use C99 declarations



commit 2738c5c803bdcc02ec6993b674eaca690e8fb4a5
Author: Colin Walters <walters verbum org>
Date:   Thu Aug 9 17:50:34 2012 -0400

    gnome-bg: Don't use C99 declarations
    
    It's not really necessary.

 libgnome-desktop/gnome-bg.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c
index 393b8f2..d225cee 100644
--- a/libgnome-desktop/gnome-bg.c
+++ b/libgnome-desktop/gnome-bg.c
@@ -1171,12 +1171,13 @@ gnome_bg_is_dark (GnomeBG *bg,
 	pixbuf = get_pixbuf_for_size (bg, -1, width, height);
 	if (pixbuf) {
 		GdkRGBA argb;
+		guchar a, r, g, b;
 
 		pixbuf_average_value (pixbuf, &argb);
-		guchar a = argb.alpha * 0xff;
-		guchar r = argb.red * 0xff;
-		guchar g = argb.green * 0xff;
-		guchar b = argb.blue * 0xff;
+		a = argb.alpha * 0xff;
+		r = argb.red * 0xff;
+		g = argb.green * 0xff;
+		b = argb.blue * 0xff;
 		
 		color.red = (color.red * (0xFF - a) + r * 0x101 * a) / 0xFF;
 		color.green = (color.green * (0xFF - a) + g * 0x101 * a) / 0xFF;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]