From 24fa7a5107c5b75d1c197accf0305be64bc72882 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 20 Jun 2024 10:11:38 +0200 Subject: Vendor import ncurses 6.5 --- ncurses/base/lib_wattron.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ncurses/base/lib_wattron.c') diff --git a/ncurses/base/lib_wattron.c b/ncurses/base/lib_wattron.c index c589f10473cb..906021d3b4cf 100644 --- a/ncurses/base/lib_wattron.c +++ b/ncurses/base/lib_wattron.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2020 Thomas E. Dickey * + * Copyright 2020,2022 Thomas E. Dickey * * Copyright 1998-2009,2010 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -43,7 +43,7 @@ #include #include -MODULE_ID("$Id: lib_wattron.c,v 1.12 2020/02/02 23:34:34 tom Exp $") +MODULE_ID("$Id: lib_wattron.c,v 1.13 2022/04/15 22:34:38 tom Exp $") NCURSES_EXPORT(int) wattr_on(WINDOW *win, attr_t at, void *opts GCC_UNUSED) @@ -55,8 +55,10 @@ wattr_on(WINDOW *win, attr_t at, void *opts GCC_UNUSED) GET_WINDOW_PAIR(win))); if_EXT_COLORS({ - if (at & A_COLOR) + if (at & A_COLOR) { win->_color = PairNumber(at); + set_extended_pair(opts, win->_color); + } }); toggle_attr_on(WINDOW_ATTRS(win), at); returnCode(OK); -- cgit v1.2.3