From 8651da0903c58349d5198d7c12a0f6671f7bc7a8 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Thu, 1 Jan 2015 23:54:05 -0800 Subject: [PATCH] Remove white ringing in Standard Color Monitor --- source/NTSC.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/NTSC.cpp b/source/NTSC.cpp index e827c9b0..48a86cef 100644 --- a/source/NTSC.cpp +++ b/source/NTSC.cpp @@ -679,6 +679,14 @@ static void init_chroma_phase_table (void) g64 = y0 + (I_TO_G * i) + (Q_TO_G * q); b64 = y0 + (I_TO_B * i) + (Q_TO_B * q); + // Remove white ringing + if(brightness > 0.9f) + { + b64 += 0.25; + g64 += 0.25; + r64 += 0.25; + } + b32 = clampZeroOne( (float)b64); g32 = clampZeroOne( (float)g64); r32 = clampZeroOne( (float)r64);