diff src/dialogs.c @ 3659:5b439da85c3b

[gaim-migrate @ 3788] more i18n work from paco-paco and a fix for colors with high intensity from Alex Converse (alex4) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 12 Oct 2002 20:45:00 +0000
parents f09193608fd3
children 5b82f99d028d
line wrap: on
line diff
--- a/src/dialogs.c	Sat Oct 12 20:23:06 2002 +0000
+++ b/src/dialogs.c	Sat Oct 12 20:45:00 2002 +0000
@@ -3046,9 +3046,9 @@
 	c = gtk_object_get_user_data(GTK_OBJECT(colorsel));
 	/* GTK_IS_EDITABLE(c->entry); huh? */
 
-	text_color.red = text_color.red * 256 / 65535;
-	text_color.green = text_color.green * 256 /65535;
-	text_color.blue = text_color.blue * 256 / 65535;
+	text_color.red = text_color.red / 256;
+	text_color.green = text_color.green / 256;
+	text_color.blue = text_color.blue / 256;
 	
 	c->fgcol = text_color;
 	c->hasfg = 1;
@@ -3073,9 +3073,9 @@
 	c = gtk_object_get_user_data(GTK_OBJECT(colorsel));
 	/* GTK_IS_EDITABLE(c->entry); huh? */
 
-	text_color.red = text_color.red * 256 / 65535;
-	text_color.green = text_color.green * 256 /65535;
-	text_color.blue = text_color.blue * 256 / 65535;
+	text_color.red = text_color.red / 256;
+	text_color.green = text_color.green / 256;
+	text_color.blue = text_color.blue / 256;
 
 	c->bgcol = text_color;
 	c->hasbg = 1;