From 4a6c799d1cc221c5d619336dc9aec39cb33bffc3 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Thu, 29 May 2025 20:19:18 +0200 Subject: [PATCH] Adjust to changed color order. --- src/common/tv_filters/AtariNTSC.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/tv_filters/AtariNTSC.hxx b/src/common/tv_filters/AtariNTSC.hxx index d8d0bf3e7..6ccd1c7ff 100644 --- a/src/common/tv_filters/AtariNTSC.hxx +++ b/src/common/tv_filters/AtariNTSC.hxx @@ -212,13 +212,13 @@ class AtariNTSC } // Generates output in the specified 32-bit format. - // 8888: 00000000 RRRRRRRR GGGGGGGG BBBBBBBB (8-8-8-8 32-bit ARGB) + // 8888: 00000000 BBBBBBBB GGGGGGGG RRRRRRRR (8-8-8-8 32-bit ABGR) #define ATARI_NTSC_RGB_OUT_8888( index, rgb_out ) {\ uInt32 raw_ =\ kernel0 [(index) ] + kernel1 [((index)+10)%7+14] +\ kernelx0 [((index)+7)%14] + kernelx1 [((index)+ 3)%7+14+7];\ ATARI_NTSC_CLAMP( raw_, 0 );\ - (rgb_out) = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ + (rgb_out) = (raw_>>21 & 0x000000FF)|(raw_>>3 & 0x0000FF00)|(raw_<<15 & 0x00FF0000);\ } // Common ntsc macros