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:
@@ -145,7 +145,6 @@ extern void curses_puts(winid wid, int attr, const char *text);
|
||||
extern void curses_clear_nhwin(winid wid);
|
||||
extern void curses_alert_win_border(winid wid, boolean onoff);
|
||||
extern void curses_alert_main_borders(boolean onoff);
|
||||
extern int get_framecolor(int nhcolor, int framecolor);
|
||||
extern void curses_draw_map(int sx, int sy, int ex, int ey);
|
||||
extern boolean curses_map_borders(int *sx, int *sy, int *ex, int *ey,
|
||||
int ux, int uy);
|
||||
|
||||
Reference in New Issue
Block a user