From e61e95da3ade094f63543fc7ed3a409b1945584c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Oct 2025 08:04:58 +0530 Subject: [PATCH] ... --- 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 3c382d0a5..8e6fc1ea8 100644 --- a/tools/utils/images/to_rgb.go +++ b/tools/utils/images/to_rgb.go @@ -73,7 +73,7 @@ func (p *NRGB) NRGBAt(x, y int) NRGBColor { return NRGBColor{} } i := p.PixOffset(x, y) - s := p.Pix[i : i+4 : i+4] // Small cap improves performance, see https://golang.org/issue/27857 + s := p.Pix[i : i+3 : i+3] // Small cap improves performance, see https://golang.org/issue/27857 return NRGBColor{s[0], s[1], s[2]} }