From: Eli Zaretskii Date: Sun, 28 Apr 2024 08:52:09 +0000 (+0300) Subject: Fix the MS-Windows build broken by a recent commit X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~1754 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b329358334712671de38f919c99d1434026aa8f2;p=emacs.git Fix the MS-Windows build broken by a recent commit * src/w32term.c (w32_draw_glyph_string): Move 'foreground' declaration to where it belongs. --- 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));