mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
setting default also sets opaque #235
This commit is contained in:
parent
8ebc63da4b
commit
663e7e2eef
@ -832,10 +832,10 @@ channel_default_p(unsigned channel){
|
||||
return !(channel & CELL_BGDEFAULT_MASK);
|
||||
}
|
||||
|
||||
// Mark the channel as using its default color.
|
||||
// Mark the channel as using its default color, which also marks it opaque.
|
||||
static inline unsigned
|
||||
channel_set_default(unsigned* channel){
|
||||
return *channel &= ~CELL_BGDEFAULT_MASK;
|
||||
return *channel &= (~CELL_BGDEFAULT_MASK | ~CELL_ALPHA_HIGHCONTRAST);
|
||||
}
|
||||
|
||||
// Extract the 32-bit background channel from a channel pair.
|
||||
|
Loading…
Reference in New Issue
Block a user