]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the MS-Windows build broken by a recent commit
authorEli Zaretskii <eliz@gnu.org>
Sun, 28 Apr 2024 08:52:09 +0000 (11:52 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 29 Apr 2024 15:05:38 +0000 (17:05 +0200)
* src/w32term.c (w32_draw_glyph_string): Move 'foreground'
declaration to where it belongs.

(cherry picked from commit b329358334712671de38f919c99d1434026aa8f2)

src/w32term.c

index a0037e6e090c9bcc52d171d1011118a9e98b0ad7..64dbafab3fdd2c963f97ef3b8f3e8274eeecd9d9 100644 (file)
@@ -2657,6 +2657,7 @@ w32_draw_glyph_string (struct glyph_string *s)
             {
               unsigned long thickness, position;
               int y;
+             COLORREF foreground;
 
               if (s->prev
                  && ((s->prev->face->underline == FACE_UNDERLINE_SINGLE)
@@ -2679,7 +2680,6 @@ w32_draw_glyph_string (struct glyph_string *s)
                  BOOL use_underline_position_properties;
                  Lisp_Object val = (WINDOW_BUFFER_LOCAL_VALUE
                                     (Qunderline_minimum_offset, s->w));
-                 COLORREF foreground;
 
                  if (FIXNUMP (val))
                    minimum_offset = max (0, XFIXNUM (val));