diff options
author | 2019-10-24 12:08:02 +0900 | |
---|---|---|
committer | 2019-10-24 12:08:02 +0900 | |
commit | c1459feacc7566a6a4d91ffb4426cdc4c16bb38f (patch) | |
tree | e78b1de4a89b38ebaf58a1e283664f96d835dfcd /src/devices/video/315_5124.h | |
parent | da07c8901b7aab5bfabe8f9c67af83515f87c465 (diff) |
315_5313.cpp : Allow LCM scaling of horizontal resolution
megaplay.cpp : Use LCM of support horizontal resolution in both VDPs
315_5124.cpp : Allow dividing hcounter related to using LCM
Diffstat (limited to 'src/devices/video/315_5124.h')
-rw-r--r-- | src/devices/video/315_5124.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/video/315_5124.h b/src/devices/video/315_5124.h index f5bb3cc02f5..1836660da9b 100644 --- a/src/devices/video/315_5124.h +++ b/src/devices/video/315_5124.h @@ -55,6 +55,7 @@ public: // construction/destruction sega315_5124_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + void set_hcounter_divide(unsigned divide) { m_hcounter_divide = divide; } void set_is_pal(bool is_pal) { m_is_pal = is_pal; } auto vblank() { return m_vblank_cb.bind(); } @@ -102,6 +103,7 @@ protected: void sega315_5124(address_map &map); + virtual int screen_hpos() { return screen().hpos() / ((m_hcounter_divide == 0) ? 1 : m_hcounter_divide); } void set_display_settings(); void set_frame_timing(); virtual void vblank_end(int vpos); @@ -130,6 +132,7 @@ protected: void draw_scanline_mode0(int *line_buffer, int line); void check_pending_flags(); + unsigned m_hcounter_divide; u8 m_reg[16]; /* All the registers */ u8 m_status; /* Status register */ u8 m_pending_status; /* Pending status flags */ |