(MESS) kaypro : same cleanup applies here too

This commit is contained in:
Robbbert 2014-04-27 12:09:51 +00:00
parent e1dab76012
commit 200dc50984
2 changed files with 3 additions and 12 deletions

View File

@ -73,10 +73,7 @@ public:
UINT8 m_mc6845_cursor[16];
UINT8 m_mc6845_reg[32];
UINT8 m_mc6845_ind;
UINT8 m_speed;
UINT8 m_flash;
UINT8 m_framecnt;
UINT16 m_cursor;
UINT8 *m_p_videoram;
kay_kbd_t *m_kbd;
int m_centronics_busy;

View File

@ -114,9 +114,6 @@ UINT32 kaypro_state::screen_update_omni2(screen_device &screen, bitmap_ind16 &bi
UINT32 kaypro_state::screen_update_kaypro2x(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
m_framecnt++;
m_speed = m_mc6845_reg[10]&0x20;
m_flash = m_mc6845_reg[10]&0x40; // cursor modes
m_cursor = (m_mc6845_reg[14]<<8) | m_mc6845_reg[15]; // get cursor position
m_crtc->screen_update(screen, bitmap, cliprect);
return 0;
}
@ -177,12 +174,9 @@ MC6845_UPDATE_ROW( kaypro2x_update_row )
if ( (BIT(attr, 2)) & (BIT(state->m_framecnt, 3)) )
fg = bg;
/* process cursor - remove when mame fixed */
if ((((!state->m_flash) && (!state->m_speed)) ||
((state->m_flash) && (state->m_speed) && (state->m_framecnt & 0x10)) ||
((state->m_flash) && (!state->m_speed) && (state->m_framecnt & 8))) &&
(mem == state->m_cursor))
inv ^= state->m_mc6845_cursor[ra];
/* process cursor */
if (x == cursor_x)
inv ^= state->m_mc6845_cursor[ra];
/* get pattern of pixels for that character scanline */
if ( (ra == 15) & (BIT(attr, 3)) ) /* underline */