]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/xterm.c (x_alloc_nearest_color_1): Add missing part of change.
authorPo Lu <luangruo@yahoo.com>
Mon, 7 Mar 2022 11:56:23 +0000 (19:56 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 7 Mar 2022 11:56:23 +0000 (19:56 +0800)
src/xterm.c

index 1befa97fd14bba95e0a9610f4ce98a0fa53749e7..76222d6256f5f128fa05671ab6781b54d3e638ea 100644 (file)
@@ -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;
            }