From 127459012a01c7be4451893a4288942ed98b0e34 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Oct 2025 11:39:39 +0530 Subject: [PATCH] Fix incorrect alpha values returned by NRGB color model --- tools/utils/images/to_rgb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/utils/images/to_rgb.go b/tools/utils/images/to_rgb.go index 649506e27..c0d3faa23 100644 --- a/tools/utils/images/to_rgb.go +++ b/tools/utils/images/to_rgb.go @@ -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 }