summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2011-08-08 12:45:17 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2011-08-08 12:45:17 +0000
commit391460af5842659a81ca61e164e63aa9c65a792e (patch)
tree4921763929d29ff810196d965ba10c5056bacfa8 /src/mame/video
parent74f21eafd115727c9baddcddac13851e1722d4d2 (diff)
Port from MESS, nw
Diffstat (limited to 'src/mame/video')
-rw-r--r--src/mame/video/stvvdp1.c4
-rw-r--r--src/mame/video/stvvdp2.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/video/stvvdp1.c b/src/mame/video/stvvdp1.c
index 37089a9a719..a8976e81ee5 100644
--- a/src/mame/video/stvvdp1.c
+++ b/src/mame/video/stvvdp1.c
@@ -172,12 +172,14 @@ READ16_HANDLER( saturn_vdp1_regs_r )
switch(offset)
{
+ case 0x02/2:
+ return 0;
case 0x10/2:
break;
case 0x12/2: return state->m_vdp1.lopr;
case 0x14/2: return state->m_vdp1.copr;
/* MODR register, read register for the other VDP1 regs
- (Shienryu SS version abuses of this during intro, otherwise you get vertical oriented VDP1 sprites on horizontal display) */
+ (Shienryu SS version abuses of this during intro) */
case 0x16/2:
UINT16 modr;
diff --git a/src/mame/video/stvvdp2.c b/src/mame/video/stvvdp2.c
index b213602cbaf..c2ad67480fe 100644
--- a/src/mame/video/stvvdp2.c
+++ b/src/mame/video/stvvdp2.c
@@ -3082,7 +3082,7 @@ static void stv_vdp2_draw_basic_bitmap(running_machine &machine, bitmap_t *bitma
gfxdatalow = gfxdata + stv2_current_tilemap.bitmap_map * 0x20000;
gfxdata+=(
(stv2_current_tilemap.scrollx & (xlinesize-1)) +
- ((stv2_current_tilemap.scrolly) * (xlinesize)) + /* TODO: mask ysize, check me! */
+ ((stv2_current_tilemap.scrolly & (ysize-1)) * (xlinesize)) + /* TODO: mask ysize, check me! */
(stv2_current_tilemap.bitmap_map * 0x20000)
);
gfxdatahigh = gfxdatalow + xlinesize*ysize;