summaryrefslogtreecommitdiffstats
path: root/src/mess/video/bbc.c
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2012-09-17 15:00:31 +0000
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2012-09-17 15:00:31 +0000
commit5ddbca3e7a2327786fd92cc7443dd84257ba889a (patch)
treef6eb4b827714a8658ea246336342b03d6d7938e0 /src/mess/video/bbc.c
parentf27b07d0822f4ff52b95a1a0143f3c2313ea02ce (diff)
downloadmame-5ddbca3e7a2327786fd92cc7443dd84257ba889a.tar.xz
mame-5ddbca3e7a2327786fd92cc7443dd84257ba889a.zip
Modernized screen update calls (no whatsnew)
Diffstat (limited to 'src/mess/video/bbc.c')
-rw-r--r--src/mess/video/bbc.c19
1 files changed, 9 insertions, 10 deletions
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_device>("mc6845");
@@ -647,7 +647,6 @@ SCREEN_UPDATE_IND16( bbc )
- bbc_state *state = screen.machine().driver_data<bbc_state>();
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());