-screen: Removed set_raw_fractional, it was poorly thought-out. nw

This commit is contained in:
mooglyguy 2019-06-17 22:41:27 +02:00
parent 57e1c5cde1
commit 8f12f3926b
2 changed files with 1 additions and 10 deletions

View File

@ -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 <typename T> void set_refresh_hz(T &&hz) { set_refresh(HZ_TO_ATTOSECONDS(std::forward<T>(hz))); }

View File

@ -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));
}