From 8f12f3926be4e7ec05d874bf6e93292571eabce0 Mon Sep 17 00:00:00 2001 From: mooglyguy Date: Mon, 17 Jun 2019 22:41:27 +0200 Subject: [PATCH] -screen: Removed set_raw_fractional, it was poorly thought-out. nw --- src/emu/screen.h | 9 --------- src/mame/video/dpb_combiner.cpp | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/emu/screen.h b/src/emu/screen.h index 2211e38ee2c..c530dc75502 100644 --- a/src/emu/screen.h +++ b/src/emu/screen.h @@ -217,15 +217,6 @@ public: m_height = vtotal; m_visarea.set(hbend, hbstart - 1, vbend, vbstart - 1); } - void set_raw_fractional(u32 pixclock, double htotal, double hbend, double hbstart, double vtotal, double vbend, double vbstart) - { - m_clock = pixclock; - m_refresh = HZ_TO_ATTOSECONDS(pixclock) * htotal * vtotal; - m_vblank = m_refresh / vtotal * (vtotal - (vbstart - vbend)); - m_width = (int)ceil(htotal); - m_height = (int)ceil(vtotal); - m_visarea.set((int)ceil(hbend), (int)floor(hbstart) - 1, (int)ceil(vbend), (int)floor(vbstart) - 1); - } void set_raw(const XTAL &xtal, u16 htotal, u16 hbend, u16 hbstart, u16 vtotal, u16 vbend, u16 vbstart) { set_raw(xtal.value(), htotal, hbend, hbstart, vtotal, vbend, vbstart); } void set_refresh(attoseconds_t rate) { m_refresh = rate; } template void set_refresh_hz(T &&hz) { set_refresh(HZ_TO_ATTOSECONDS(std::forward(hz))); } diff --git a/src/mame/video/dpb_combiner.cpp b/src/mame/video/dpb_combiner.cpp index 533d6d41365..65e11d0da53 100644 --- a/src/mame/video/dpb_combiner.cpp +++ b/src/mame/video/dpb_combiner.cpp @@ -140,7 +140,7 @@ void dpb7000_combiner_card_device::device_add_mconfig(machine_config &config) TMC28KU(config, m_mult_ga); SCREEN(config, m_screen, SCREEN_TYPE_RASTER); - m_screen->set_raw_fractional(clock(), 910, 0, 640, 262.5, 0, 240); + m_screen->set_raw(clock(), 910, 0, 640, 525, 0, 480); m_screen->set_screen_update(FUNC(dpb7000_combiner_card_device::screen_update)); }