[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9e1186a732: ; * src/xterm.c (x_alloc_nearest_color_1): Add missin
From: |
Po Lu |
Subject: |
master 9e1186a732: ; * src/xterm.c (x_alloc_nearest_color_1): Add missing part of change. |
Date: |
Mon, 7 Mar 2022 06:56:56 -0500 (EST) |
branch: master
commit 9e1186a73279f9e6416cc594171482be5a223820
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
; * src/xterm.c (x_alloc_nearest_color_1): Add missing part of change.
---
src/xterm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index 1befa97fd1..76222d6256 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3878,10 +3878,10 @@ x_alloc_nearest_color_1 (Display *dpy, Colormap cmap,
XColor *color)
* ((color->blue >> 8) - (cells[x].blue >> 8))));
if (trial_delta < nearest_delta)
{
- XColor temp;
temp.red = cells[x].red;
temp.green = cells[x].green;
temp.blue = cells[x].blue;
+
nearest = x;
nearest_delta = trial_delta;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9e1186a732: ; * src/xterm.c (x_alloc_nearest_color_1): Add missing part of change.,
Po Lu <=