From 00febe452e59376f0eb981f6ab3b71e7f53e48e8 Mon Sep 17 00:00:00 2001 From: Piotr Chorzelewski <45640997+harrrson@users.noreply.github.com> Date: Fri, 29 Dec 2023 23:31:01 +0100 Subject: [PATCH] fix: cmyk calculations - blue value calculations (#1053) --- src/dpp/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp/utility.cpp b/src/dpp/utility.cpp index ff0dcde276..321bad46d4 100644 --- a/src/dpp/utility.cpp +++ b/src/dpp/utility.cpp @@ -408,7 +408,7 @@ uint32_t rgb(int red, int green, int blue) { uint32_t cmyk(double c, double m, double y, double k) { int r = (int)(255 * (1 - c) * (1 - k)); int g = (int)(255 * (1 - m) * (1 - k)); - int b = (int)(255 * (1 - y) * (1 - m)); + int b = (int)(255 * (1 - y) * (1 - k)); return rgb(r, g, b); }