summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-10-29 14:39:47 +1100
committer Vas Crabb <vas@vastheman.com>2018-10-29 14:39:47 +1100
commitd5187a3a6f221f582927c381c7d7359a61c8f4d4 (patch)
tree405a85340b86d274e30e8a48cf6e0b59ae3fc7b1 /src
parent9d50667c5d068167c2574c09d1de489f767e882a (diff)
let's fix this (nw)
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/crystal.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/crystal.cpp b/src/mame/drivers/crystal.cpp
index 13eea7fa338..7f8e8326e6f 100644
--- a/src/mame/drivers/crystal.cpp
+++ b/src/mame/drivers/crystal.cpp
@@ -541,7 +541,7 @@ READ32_MEMBER(crystal_state::crtc_r)
switch (offset)
{
case 0: // CRTC Status / Mode
- if ((m_crtcregs[0x30 / 4] & 1) == 0) // Interrace
+ if ((m_crtcregs[0x30 / 4] & 1) == 0) // Interlace
vdisp <<= 1;
if (m_screen->vpos() <= vdisp) // Vertical display enable status
@@ -635,12 +635,11 @@ void crystal_state::crtc_update()
// TODO : Implement other CRTC parameters
uint32_t hdisp = m_crtcregs[0x0c / 4] + 1;
uint32_t vdisp = m_crtcregs[0x1c / 4] + 1;
- if ((m_crtcregs[0x30 / 4] & 1) == 0) // Interrace
+ if ((m_crtcregs[0x30 / 4] & 1) == 0) // Interlace
vdisp <<= 1;
- rectangle visarea;
- visarea.set(0, hdisp - 1, 0, vdisp - 1);
- m_screen->configure(hdisp, vdisp, visarea, m_screen->frame_period().attoseconds() );
+ rectangle const visarea(0, hdisp - 1, 0, vdisp - 1);
+ m_screen->configure(hdisp, vdisp, visarea, m_screen->frame_period().attoseconds());
}
void crystal_state::internal_map(address_map &map)