mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Merge branch '1657_broken_transparency'
* 1657_broken_transparency: Ticket #1657: Transparency support is broken in 4.7.0-pre3
This commit is contained in:
commit
dc5cee2452
@ -171,10 +171,13 @@ tty_color_try_alloc_pair_lib (tty_color_pair_t * mc_color_pair)
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
int mask_fg = (mc_color_pair->ifg == -1) ? mc_color_pair->ifg : 0xff;
|
||||
int mask_bg = (mc_color_pair->ibg == -1) ? mc_color_pair->ibg : 0xff;
|
||||
|
||||
init_pair (mc_color_pair->pair_index,
|
||||
mc_tty_color_save_attr_lib (mc_color_pair->pair_index,
|
||||
mc_color_pair->ifg) & COLOR_WHITE,
|
||||
mc_color_pair->ibg & COLOR_WHITE);
|
||||
mc_color_pair->ifg) & mask_fg,
|
||||
mc_color_pair->ibg & mask_bg);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user