mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 06:54:58 +02:00
Fix incorrect alpha values returned by NRGB color model
This commit is contained in:
@@ -25,7 +25,7 @@ func (c NRGBColor) RGBA() (r, g, b, a uint32) {
|
||||
g |= g << 8
|
||||
b = uint32(c.B)
|
||||
b |= b << 8
|
||||
a = 65280 // ( 255 << 8 )
|
||||
a = 65535 // (255 << 8 | 255)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user