diff options
author | 2018-02-19 00:35:09 +0100 | |
---|---|---|
committer | 2018-02-19 00:35:09 +0100 | |
commit | d5b6deeca2d3285bb48a714db53135022598ca2b (patch) | |
tree | 3820616db74e72ea03a5e7428e0a6d604695c607 /src | |
parent | 079bc478a3265309821f67a11ee872343d5afe6b (diff) |
Actual explaination about this (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/video/model2rd.hxx | 11 |
1 files 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]; |