… | … | ||
---|---|---|---|
332 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } | 332 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
333 | 333 | ||
334 | bool is_opaque () const | 334 | bool is_opaque () const |
335 | { | 335 | { |
336 | #if XFT | 336 | #if XFT |
337 | //TODO: only supports 24 bit truecolour | 337 | return c.color.alpha == rgba::MAX_CC; |
338 | return c.color.alpha < 0xff00; | ||
339 | #else | 338 | #else |
340 | return 1; | 339 | return 1; |
341 | #endif | 340 | #endif |
342 | } | 341 | } |
343 | 342 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |