mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Fix _isMarioTennisScoreboard() hack for (E) version.
This commit is contained in:
parent
08513ded89
commit
e3d8905984
|
@ -281,8 +281,12 @@ void FrameBufferList::setBufferChanged()
|
|||
|
||||
bool FrameBufferList::_isMarioTennisScoreboard()
|
||||
{
|
||||
if ((config.generalEmulation.hacks&hack_scoreboard) != 0)
|
||||
return m_pCurrent != NULL && (m_pCurrent->m_startAddress == 0x13ba50 || m_pCurrent->m_startAddress == 0x264430);
|
||||
if ((config.generalEmulation.hacks&hack_scoreboard) != 0) {
|
||||
if (VI.PAL)
|
||||
return m_pCurrent != NULL && (m_pCurrent->m_startAddress == 0x13b480 || m_pCurrent->m_startAddress == 0x26a530);
|
||||
else
|
||||
return m_pCurrent != NULL && (m_pCurrent->m_startAddress == 0x13ba50 || m_pCurrent->m_startAddress == 0x264430);
|
||||
}
|
||||
return (config.generalEmulation.hacks&hack_scoreboardJ) != 0 && m_pCurrent != NULL && (m_pCurrent->m_startAddress == 0x134080 || m_pCurrent->m_startAddress == 0x1332f8);
|
||||
}
|
||||
|
||||
|
|
|
@ -49,8 +49,8 @@ void VI_UpdateSize()
|
|||
} else if (hEnd != 0 && *REG.VI_WIDTH != 0)
|
||||
VI.width = min((u32)floorf((hEnd - hStart)*xScale + 0.5f), *REG.VI_WIDTH);
|
||||
|
||||
const bool isPAL = (*REG.VI_V_SYNC & 0x3ff) > 550;
|
||||
if (isPAL && (vEnd - vStart) > 478) {
|
||||
VI.PAL = (*REG.VI_V_SYNC & 0x3ff) > 550;
|
||||
if (VI.PAL && (vEnd - vStart) > 478) {
|
||||
VI.height = (u32)(VI.real_height*1.0041841f);
|
||||
if (VI.height > 576)
|
||||
VI.height = VI.real_height = 576;
|
||||
|
|
Loading…
Reference in New Issue
Block a user