From e35ed4c4bfc7287feaa498dadfa7923c3b5e8b26 Mon Sep 17 00:00:00 2001 From: Curt Coder Date: Sat, 6 Dec 2014 19:07:06 +0200 Subject: gamate: clang compile fix. (nw) --- src/mess/drivers/gamate.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/mess/drivers/gamate.c b/src/mess/drivers/gamate.c index 04353a850f8..1495fcc5479 100644 --- a/src/mess/drivers/gamate.c +++ b/src/mess/drivers/gamate.c @@ -125,11 +125,11 @@ WRITE8_MEMBER( gamate_state::gamate_video_w ) if (video.bitmap.write) { if (video.xpc(), video.x); } else { video.bitmap.data[0][video.y][video.x&(ARRAY_LENGTH(video.bitmap.data[0][0])-1)]=data; - } + } if (video.y_increment) video.y++; else video.x++; } @@ -141,13 +141,13 @@ READ8_MEMBER( gamate_state::gamate_video_r ) UINT8 data=0; if (video.bitmap.write) { if (video.xpc()<0xf000) + if (m_maincpu->pc()<0xf000) logerror("%.6f video read %04x %02x\n",machine().time().as_double(),offset, data); return data; } @@ -196,6 +196,7 @@ static INPUT_PORTS_START( gamate ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SELECT) PORT_NAME("select") INPUT_PORTS_END +#ifdef UNUSED_CODE static const struct gfx_layout gamate_charlayout = { 4, /* width of object */ @@ -215,6 +216,11 @@ static const unsigned short gamate_palette[4] = 0,1,2,3 }; +static GFXDECODE_START( gamate_charlayout ) + GFXDECODE_ENTRY( "gfx1", 0x0000, gamate_charlayout, 0, 0x100 ) +GFXDECODE_END +#endif + /* palette in red, green, blue tribles */ static const unsigned char gamate_colors[4][3] = { @@ -224,10 +230,6 @@ static const unsigned char gamate_colors[4][3] = { 0, 0, 0 } }; -static GFXDECODE_START( gamate_charlayout ) - GFXDECODE_ENTRY( "gfx1", 0x0000, gamate_charlayout, 0, 0x100 ) -GFXDECODE_END - PALETTE_INIT_MEMBER(gamate_state, gamate) { int i; -- cgit v1.2.3