From 5ddbca3e7a2327786fd92cc7443dd84257ba889a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 17 Sep 2012 15:00:31 +0000 Subject: Modernized screen update calls (no whatsnew) --- src/mess/video/bbc.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/mess/video/bbc.c') diff --git a/src/mess/video/bbc.c b/src/mess/video/bbc.c index e132ede0151..7a8530fadf7 100644 --- a/src/mess/video/bbc.c +++ b/src/mess/video/bbc.c @@ -637,7 +637,7 @@ WRITE8_MEMBER(bbc_state::bbc_6845_w) -SCREEN_UPDATE_IND16( bbc ) +UINT32 bbc_state::screen_update_bbc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { mc6845_device *mc6845 = screen.machine().device("mc6845"); @@ -647,7 +647,6 @@ SCREEN_UPDATE_IND16( bbc ) - bbc_state *state = screen.machine().driver_data(); long c; //logerror ("Box %d by %d \n",cliprect.min_y,cliprect.max_y); @@ -655,15 +654,15 @@ SCREEN_UPDATE_IND16( bbc ) c = 0; // this is used to time out the screen redraw, in the case that the 6845 is in some way out state. - state->m_BBC_bitmap=bitmap; + m_BBC_bitmap=bitmap; - state->m_BBC_display_left=&state->m_BBC_bitmap->pix16(0); - state->m_BBC_display_right=state->m_BBC_display_left; - state->m_BBC_display=state->m_BBC_display_left; + m_BBC_display_left=&m_BBC_bitmap->pix16(0); + m_BBC_display_right=m_BBC_display_left; + m_BBC_display=m_BBC_display_left; // loop until the end of the Vertical Sync pulse // or until a timeout (this catches the 6845 with silly register values that would not give a VSYNC signal) - while((state->m_BBC_VSync)&&(c<60000)) + while((m_BBC_VSync)&&(c<60000)) { // Clock the 6845 m6845_clock(screen.machine()); @@ -673,12 +672,12 @@ SCREEN_UPDATE_IND16( bbc ) // loop until the Vertical Sync pulse goes high // or until a timeout (this catches the 6845 with silly register values that would not give a VSYNC signal) - while((!state->m_BBC_VSync)&&(c<60000)) + while((!m_BBC_VSync)&&(c<60000)) { - if ((state->m_y_screen_pos>=cliprect.min_y) && (state->m_y_screen_pos<=cliprect.max_y)) (state->m_draw_function)(screen.machine()); + if ((m_y_screen_pos>=cliprect.min_y) && (m_y_screen_pos<=cliprect.max_y)) (m_draw_function)(screen.machine()); // and check the cursor - if (state->m_VideoULA_CR) BBC_Clock_CR(state); + if (m_VideoULA_CR) BBC_Clock_CR(this); // Clock the 6845 m6845_clock(screen.machine()); -- cgit v1.2.3