From c65b903ed2bb924cca0b04799e74ad7ac79076f0 Mon Sep 17 00:00:00 2001 From: angelosa Date: Mon, 19 Feb 2018 15:44:02 +0100 Subject: Some reverts of stuff proven wrong ... --- src/mame/video/model2.cpp | 6 +++--- 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 */ -- cgit v1.2.3