From d5b6deeca2d3285bb48a714db53135022598ca2b Mon Sep 17 00:00:00 2001 From: angelosa Date: Mon, 19 Feb 2018 00:35:09 +0100 Subject: [PATCH] Actual explaination about this (nw) --- src/mame/video/model2rd.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mame/video/model2rd.hxx b/src/mame/video/model2rd.hxx index 181e90e608a..f290889f218 100644 --- a/src/mame/video/model2rd.hxx +++ b/src/mame/video/model2rd.hxx @@ -185,13 +185,14 @@ void MODEL2_FUNC_NAME(int32_t scanline, const extent_t& extent, const m2_poly_ex // Virtua Striker sets up a luma of 0x40 for national flags on bleachers, fix here. luma = std::min((int)luma,0x3f); - + // (Again) Virtua Striker seem to lookup colortable with a reversed endianness (stadium ads) + luma^= 1; + /* we have the 6 bits of luma information along with 5 bits per color component */ /* now build and index into the master color lookup table and extract the raw RGB values */ - - tr = colortable_r[(luma^1)] & 0xff; - tg = colortable_g[(luma^1)] & 0xff; - tb = colortable_b[(luma^1)] & 0xff; + tr = colortable_r[(luma)] & 0xff; + tg = colortable_g[(luma)] & 0xff; + tb = colortable_b[(luma)] & 0xff; tr = gamma_value[tr]; tg = gamma_value[tg]; tb = gamma_value[tb];