diff options
Diffstat (limited to 'src/w32term.c')
-rw-r--r-- | src/w32term.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c index 9560d27a124..c8f7b9933a7 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -1608,6 +1608,14 @@ w32_query_colors (struct frame *f, XColor *colors, int ncolors) } } +/* Store F's background color into *BGCOLOR. */ + +static void +w32_query_frame_background_color (struct frame *f, XColor *bgcolor) +{ + bgcolor->pixel = FRAME_BACKGROUND_PIXEL (f); + w32_query_colors (f, bgcolor, 1); +} /* Set up the foreground color for drawing relief lines of glyph string S. RELIEF is a pointer to a struct relief containing the GC @@ -7160,6 +7168,7 @@ w32_create_terminal (struct w32_display_info *dpyinfo) terminal->read_socket_hook = w32_read_socket; terminal->frame_up_to_date_hook = w32_frame_up_to_date; terminal->defined_color_hook = w32_defined_color; + terminal->query_frame_background_color = w32_query_frame_background_color; terminal->mouse_position_hook = w32_mouse_position; terminal->get_focus_frame = w32_get_focus_frame; terminal->focus_frame_hook = w32_focus_frame; |