From: Po Lu Date: Mon, 7 Mar 2022 11:56:23 +0000 (+0800) Subject: ; * src/xterm.c (x_alloc_nearest_color_1): Add missing part of change. X-Git-Tag: emacs-29.0.90~1974 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9e1186a73279f9e6416cc594171482be5a223820;p=emacs.git ; * src/xterm.c (x_alloc_nearest_color_1): Add missing part of change. --- diff --git a/src/xterm.c b/src/xterm.c index 1befa97fd14..76222d6256f 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; }