From a1168be6c7641217760fa94032f52f1313b66412 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Oct 2025 13:25:46 +0530 Subject: [PATCH] ... --- tools/utils/images/to_rgb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/utils/images/to_rgb.go b/tools/utils/images/to_rgb.go index 411bbe478..bb1248841 100644 --- a/tools/utils/images/to_rgb.go +++ b/tools/utils/images/to_rgb.go @@ -45,10 +45,10 @@ func newScannerRGB(img image.Image, opaque_base imaging.NRGBColor) *scanner_rgb case 0: s.palette[i] = opaque_base case 0xffff: - s.palette[i] = imaging.NRGBColor{uint8(r >> 8), uint8(g >> 8), uint8(b >> 8)} + s.palette[i] = imaging.NRGBColor{R: uint8(r >> 8), G: uint8(g >> 8), B: uint8(b >> 8)} default: blend(ds, s.opaque_base, uint8((r*0xffff/a)>>8), uint8((g*0xffff/a)>>8), uint8((b*0xffff/a)>>8), uint8(a>>8)) - s.palette[i] = imaging.NRGBColor{d[0], d[1], d[2]} + s.palette[i] = imaging.NRGBColor{R: d[0], G: d[1], B: d[2]} } } }