setting default also sets opaque #235

This commit is contained in:
nick black 2019-12-29 02:10:30 -05:00
parent 8ebc63da4b
commit 663e7e2eef
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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.