summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-09-10 16:48:32 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-09-10 16:48:32 +0000
commit8f8981db66ef18c674ee9a3f336b7f048a1dde9a (patch)
tree170c84602e1b00a151048de40fe3ba37da37a480
parentf529af1f43ed0fabb78f2e7909157d90c5ab57b5 (diff)
Fix incorrect videoram offset in rpunch.
-rw-r--r--src/mame/video/rpunch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/rpunch.c b/src/mame/video/rpunch.c
index d5cff954c15..9a5e8fb9112 100644
--- a/src/mame/video/rpunch.c
+++ b/src/mame/video/rpunch.c
@@ -60,7 +60,7 @@ static TILE_GET_INFO( get_bg1_tile_info )
{
rpunch_state *state = machine->driver_data<rpunch_state>();
UINT16 *videoram = state->videoram;
- int data = videoram[0x4000 / 2 + tile_index];
+ int data = videoram[0x2000 / 2 + tile_index];
int code;
if (videoflags & 0x0800) code = (data & 0x0fff) | 0x2000;
else code = (data & 0x1fff);
@@ -90,7 +90,7 @@ static TIMER_CALLBACK( crtc_interrupt_gen )
VIDEO_START( rpunch )
{
/* allocate tilemaps for the backgrounds */
- background[0] = tilemap_create(machine, get_bg0_tile_info,tilemap_scan_cols, 8,8,64,64);
+ background[0] = tilemap_create(machine, get_bg0_tile_info,tilemap_scan_cols,8,8,64,64);
background[1] = tilemap_create(machine, get_bg1_tile_info,tilemap_scan_cols,8,8,64,64);
/* configure the tilemaps */