diff options
author | Angelo Salese <angelosa@users.noreply.github.com> | 2011-08-16 18:24:55 +0000 |
---|---|---|
committer | Angelo Salese <angelosa@users.noreply.github.com> | 2011-08-16 18:24:55 +0000 |
commit | 883899d0f55abec734f6f2f571658954a094d4a0 (patch) | |
tree | b4948733c01744ad1cdfb173b122bb0cb747c856 /src/mame/video | |
parent | e370e9da6708072cb56956fa70de195bdc759242 (diff) |
z80dma: Added an alternative way of register read-back that directly
change the read mask without passing from the init read sequence
command, also moved around DMA counters incrementing [Angelo Salese]
Small gfx fixes for Saturn, nw
Diffstat (limited to 'src/mame/video')
-rw-r--r-- | src/mame/video/stvvdp1.c | 9 | ||||
-rw-r--r-- | src/mame/video/stvvdp2.c | 10 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/mame/video/stvvdp1.c b/src/mame/video/stvvdp1.c index a8976e81ee5..35c2bdfa799 100644 --- a/src/mame/video/stvvdp1.c +++ b/src/mame/video/stvvdp1.c @@ -179,7 +179,7 @@ READ16_HANDLER( saturn_vdp1_regs_r ) 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) */ + (Shienryu SS version abuses of this during intro) */ case 0x16/2: UINT16 modr; @@ -2171,8 +2171,11 @@ int stv_vdp1_start ( running_machine &machine ) state->m_vdp1.system_cliprect.min_x = state->m_vdp1.system_cliprect.max_x = 0; state->m_vdp1.system_cliprect.min_y = state->m_vdp1.system_cliprect.max_y = 0; - state->m_vdp1.user_cliprect.min_x = state->m_vdp1.user_cliprect.max_x = 0; - state->m_vdp1.user_cliprect.min_y = state->m_vdp1.user_cliprect.max_y = 0; + /* Kidou Senshi Z Gundam - Zenpen Zeta no Kodou loves to use the user cliprect vars in an undefined state ... */ + state->m_vdp1.user_cliprect.min_x = 0; + state->m_vdp1.user_cliprect.min_y = 0; + state->m_vdp1.user_cliprect.max_x = 512; + state->m_vdp1.user_cliprect.max_y = 256; // save state state_save_register_global_pointer(machine, state->m_vdp1_regs, 0x020/2); diff --git a/src/mame/video/stvvdp2.c b/src/mame/video/stvvdp2.c index ea007c66b4c..b0df27096dd 100644 --- a/src/mame/video/stvvdp2.c +++ b/src/mame/video/stvvdp2.c @@ -4317,6 +4317,10 @@ static void stv_vdp2_check_tilemap(running_machine &machine, bitmap_t *bitmap, c { + /* Pukunpa */ + if(STV_VDP2_SPWINEN) + popmessage("Sprite Window enabled"); + /* Capcom Collection Dai 2 - Choh Makaimura (Duh!) */ if(STV_VDP2_MZCTL & 0x1f && 0) popmessage("Mosaic control enabled = %04x\n",STV_VDP2_MZCTL); @@ -6424,13 +6428,19 @@ static void draw_sprites(running_machine &machine, bitmap_t *bitmap, const recta stv_sprite_priorities_in_fb_line[y][sprite_priorities[0]] = 1; continue; }; + + if(STV_VDP2_SPWINEN && pix == 0x8000) /* Pukunpa */ + continue; + b = (pix & 0x7c00) >> 10; g = (pix & 0x03e0) >> 5; r = (pix & 0x1f); + if ( color_offset_pal ) { stv_vdp2_compute_color_offset_RGB555( machine, &r, &g, &b, STV_VDP2_SPCOSL ); } + bitmap_line[x] = b | g << 5 | r << 10; } else |