From dda4ec890600fb2f37523f7c58ce5e5ba8217bda Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 8 Jun 2020 15:27:08 +0200 Subject: [PATCH] make NTSC custom phase shift not affect Yellow anymore (fixes #656) --- src/common/PaletteHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/PaletteHandler.cxx b/src/common/PaletteHandler.cxx index d2a2a7768..0483b6bb9 100644 --- a/src/common/PaletteHandler.cxx +++ b/src/common/PaletteHandler.cxx @@ -385,7 +385,7 @@ void PaletteHandler::generateCustomPalette(ConsoleTiming timing) for(int chroma = 1; chroma < NUM_CHROMA; chroma++) { color[chroma][0] = SATURATION * sinf(offset + shift * (chroma - 1)); - color[chroma][1] = SATURATION * sinf(offset + shift * (chroma - 1 - BSPF::PI_f)); + color[chroma][1] = SATURATION * cosf(offset + shift * (chroma - 1) - BSPF::PI_f); } for(int chroma = 0; chroma < NUM_CHROMA; chroma++)