From 10c99a5bb240d219151287bc40a98ac57913b3f4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 28 Apr 2004 19:03:10 +0000 Subject: We only want 8bits per color. Fixes bug #57588. 2004-04-28 Jeffrey Stedfast * em-mailer-prefs.c (citation_color_set): We only want 8bits per color. Fixes bug #57588. svn path=/trunk/; revision=25671 --- mail/em-mailer-prefs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mail/em-mailer-prefs.c') diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c index fd1e118e02..9ca583e5c9 100644 --- a/mail/em-mailer-prefs.c +++ b/mail/em-mailer-prefs.c @@ -173,13 +173,13 @@ citation_color_set (GtkWidget *widget, guint r, guint g, guint b, guint a, EMMai guint32 rgb = 0; char buf[20]; - rgb = r; + rgb = r & 0xff; rgb <<= 8; - rgb |= g; + rgb |= g & 0xff; rgb <<= 8; - rgb |= b; + rgb |= b & 0xff; - sprintf (buf,"#%06x", rgb & 0xffffff); + sprintf (buf, "#%06x", rgb & 0xffffff); gconf_client_set_string (prefs->gconf, "/apps/evolution/mail/display/citation_colour", buf, NULL); } -- cgit v1.2.3