changeset 33064:9de33d895c6c

(x_alloc_nearest_color): Fix last change to compare RGB values.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 30 Oct 2000 15:16:52 +0000
parents 0a3da2a92f53
children 4d0c4ad5bae5
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Oct 30 15:13:58 2000 +0000
+++ b/src/xterm.c	Mon Oct 30 15:16:52 2000 +0000
@@ -3422,7 +3422,9 @@
       
       if (dpyinfo->color_cells
 	  && (cached_color = &dpyinfo->color_cells[color->pixel],
-	      cached_color->pixel != color->pixel))
+	      (cached_color->red != color->red
+	       || cached_color->blue != color->blue
+	       || cached_color->green != color->green)))
 	{
 	  xfree (dpyinfo->color_cells);
 	  dpyinfo->color_cells = NULL;