mirror of
https://github.com/holub/mame
synced 2025-05-07 23:02:33 +03:00
hd61830: made character mode also work in 16-bit chunks. Fixes text display on the Hunter 2.
This commit is contained in:
parent
72c4cc20f8
commit
662bd6cf43
@ -49,7 +49,7 @@ const rom_entry *hd61830_device::device_rom_region() const
|
||||
// MACROS / CONSTANTS
|
||||
//**************************************************************************
|
||||
|
||||
#define LOG 1
|
||||
#define LOG 0
|
||||
|
||||
static const int CYCLES[] =
|
||||
{
|
||||
@ -483,14 +483,18 @@ void hd61830_device::draw_char(bitmap_ind16 &bitmap, const rectangle &cliprect,
|
||||
|
||||
void hd61830_device::update_text(bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
UINT16 ma = 0;
|
||||
for (int y = 0; y < (m_nx / m_vp); y++)
|
||||
{
|
||||
for (int x = 0; x < m_hn; x++)
|
||||
for (int x = 0; x < m_hn; x+=2)
|
||||
{
|
||||
UINT16 ma = y * m_hn + x;
|
||||
UINT8 md = readbyte(ma);
|
||||
UINT8 md1 = readbyte(ma);
|
||||
UINT8 md2 = readbyte(ma+1);
|
||||
|
||||
draw_char(bitmap, cliprect, ma, x, y, md);
|
||||
draw_char(bitmap, cliprect, ma, x, y, md1);
|
||||
draw_char(bitmap, cliprect, ma+1, x+1, y, md2);
|
||||
|
||||
ma+=2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user