From 886f14ed9ff3548bf958800fe8a4509b0d9bc7c3 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 28 Apr 2024 11:52:09 +0300 Subject: [PATCH] Fix the MS-Windows build broken by a recent commit * src/w32term.c (w32_draw_glyph_string): Move 'foreground' declaration to where it belongs. (cherry picked from commit b329358334712671de38f919c99d1434026aa8f2) --- src/w32term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/w32term.c b/src/w32term.c index a0037e6e090..64dbafab3fd 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -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)); -- 2.39.5