curses: use existing background parameter for pile
The blue background colour for piles was implemented by changing glyph colour to curses colour pair with the desired background, and then passed to curses_putch which takes character and background colour and makes curses colour pair out of them once again. Pass blue background to curses_putch instead and let it create curses colour pair just once.
This commit is contained in:
@@ -763,7 +763,7 @@ is_main_window(winid wid)
|
||||
coordinates without a refresh. Currently only used for the map. */
|
||||
|
||||
/* convert nhcolor (fg) and framecolor (bg) to curses colorpair */
|
||||
int
|
||||
static int
|
||||
get_framecolor(int nhcolor, int framecolor)
|
||||
{
|
||||
/* curses_toggle_color_attr() adds the +1 and takes care of COLORS < 16 */
|
||||
|
||||
Reference in New Issue
Block a user