diff options
author | angelosa <salese_corp_ltd@email.it> | 2018-02-19 15:44:02 +0100 |
---|---|---|
committer | angelosa <salese_corp_ltd@email.it> | 2018-02-20 00:32:40 +0100 |
commit | c65b903ed2bb924cca0b04799e74ad7ac79076f0 (patch) | |
tree | 494ce3fd55e7497554ccedc3c1e058afb744b59b | |
parent | b85cedc7186178d6b61b77efd888491a0ae85022 (diff) |
Some reverts of stuff proven wrong ...
-rw-r--r-- | src/mame/video/model2.cpp | 6 | ||||
-rw-r--r-- | src/mame/video/model2rd.hxx | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/video/model2.cpp b/src/mame/video/model2.cpp index 3ce1560ce47..4df9a429f78 100644 --- a/src/mame/video/model2.cpp +++ b/src/mame/video/model2.cpp @@ -790,9 +790,9 @@ void model2_renderer::model2_3d_render(triangle *tri, const rectangle &cliprect) renderer = (tri->texheader[0] >> 13) & 7; /* calculate and clip to viewport */ - // TODO: correct? seems to be right for all cases - //rectangle vp(tri->viewport[0] - 8, tri->viewport[2] - 8, (384-tri->viewport[3])+90, (384-tri->viewport[1])+90); - rectangle vp(tri->viewport[0] - 8, tri->viewport[2] - tri->viewport[0], tri->viewport[1] - 127, tri->viewport[3] - tri->viewport[1]); + rectangle vp(tri->viewport[0] - 8, tri->viewport[2] - 8, (384-tri->viewport[3])+90, (384-tri->viewport[1])+90); + // TODO: this seems to be more accurate but it breaks in some cases + //rectangle vp(tri->viewport[0] - 8, tri->viewport[2] - tri->viewport[0], tri->viewport[1] - 90, tri->viewport[3] - tri->viewport[1]); vp &= cliprect; extra.state = &m_state; diff --git a/src/mame/video/model2rd.hxx b/src/mame/video/model2rd.hxx index f290889f218..a1e1b68fc49 100644 --- a/src/mame/video/model2rd.hxx +++ b/src/mame/video/model2rd.hxx @@ -186,7 +186,8 @@ 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; + // TODO: it breaks Mexican flag colors tho ... +// 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 */ |