summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/tms9927.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/tms9927.cpp')
-rw-r--r--src/devices/video/tms9927.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/video/tms9927.cpp b/src/devices/video/tms9927.cpp
index bc8e187f8e8..7764aba05f7 100644
--- a/src/devices/video/tms9927.cpp
+++ b/src/devices/video/tms9927.cpp
@@ -54,6 +54,7 @@ tms9927_device::tms9927_device(const machine_config &mconfig, device_type type,
, m_selfload(*this, finder_base::DUMMY_TAG)
, m_reset(false)
, m_valid_config(false)
+ , m_custom_visarea(0, 0, 0, 0)
{
std::fill(std::begin(m_reg), std::end(m_reg), 0x00);
}
@@ -349,6 +350,9 @@ void tms9927_device::recompute_parameters(bool postload)
rectangle visarea(0, m_overscan_left + m_visible_hpix + m_overscan_right - 1,
0, m_overscan_top + m_visible_vpix + m_overscan_bottom - 1);
+ if (m_custom_visarea.width() > 1 && m_custom_visarea.height() > 1)
+ visarea = m_custom_visarea;
+
attotime refresh = clocks_to_attotime(HCOUNT * m_total_vpix);
osd_printf_debug("TMS9927: Total = %dx%d, Visible = %dx%d, HSync = %d-%d, VSync = %d-%d, Skew=%d, Upscroll=%d, Period=%f Hz\n", m_total_hpix, m_total_vpix, m_visible_hpix, m_visible_vpix, m_hsyn_start, m_hsyn_end, m_vsyn_start, m_vsyn_end, SKEW_BITS, m_start_datarow, refresh.as_hz());