From b15b2d494c9f871e58b8d10288d3d5cd74c8338b Mon Sep 17 00:00:00 2001 From: Zach Nagengast Date: Mon, 6 Nov 2023 20:48:22 -0800 Subject: [PATCH] Update src/_imagingft.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ondrej Baranovič --- src/_imagingft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_imagingft.c b/src/_imagingft.c index 966ee0267..07a348a14 100644 --- a/src/_imagingft.c +++ b/src/_imagingft.c @@ -1080,7 +1080,7 @@ font_render(FontObject *self, PyObject *args) { int out_alpha = CLIP8(src_alpha + MULDIV255(target[k * 4 + 3], (255 - src_alpha), tmp)); target[k * 4 + 3] = out_alpha; } else { - /* paste source directly to BGRa */ + /* paste unpremultiplied RGBA values */ target[k * 4 + 0] = src_blu; target[k * 4 + 1] = src_grn; target[k * 4 + 2] = src_red;