Previous 15994 Revisions Next

r12399 Saturday 30th July, 2011 at 21:11:27 UTC by Angelo Salese
Added VDP1 EWDR, get rid of a popmessage
[src/mame/includes]stv.h
[src/mame/video]stvvdp1.c stvvdp2.c

src/mame/includes/stv.h
r12398r12399
5757       UINT8     *gfx_decode;
5858      UINT16    lopr;
5959      UINT16    copr;
60      UINT16    ewdr;
6061
6162      int       local_x;
6263      int       local_y;
src/mame/video/stvvdp1.c
r12398r12399
204204   saturn_state *state = machine.driver_data<saturn_state>();
205205
206206   if ( VDP1_LOG ) logerror( "Clearing %d framebuffer\n", state->m_vdp1.framebuffer_current_draw );
207   memset( state->m_vdp1.framebuffer[ which_framebuffer ], 0, 1024 * 256 * sizeof(UINT16) * 2 );
207   memset( state->m_vdp1.framebuffer[ which_framebuffer ], state->m_vdp1.ewdr, 1024 * 256 * sizeof(UINT16) * 2 );
208208}
209209
210210
r12398r12399
226226         state->m_vdp1.framebuffer_draw_lines[i] = &state->m_vdp1.framebuffer[0][0];
227227         state->m_vdp1.framebuffer_display_lines[i] = &state->m_vdp1.framebuffer[1][0];
228228      }
229
230229   }
231230   else
232231   {
r12398r12399
313312      case 0x06/2:
314313         if ( VDP1_LOG ) logerror( "VDP1: Erase data set %08X\n", data );
315314
316         if(data && data != 0x8000)
317            popmessage("EWDR set %08x, contact MAMEdev",STV_VDP1_EWDR);
318
315         state->m_vdp1.ewdr = STV_VDP1_EWDR;
319316         break;
320317      case 0x08/2:
321318         if ( VDP1_LOG ) logerror( "VDP1: Erase upper-left coord set: %08X\n", data );
src/mame/video/stvvdp2.c
r12398r12399
30283028   gfxdatalow = gfxdata + stv2_current_tilemap.bitmap_map * 0x20000;
30293029   gfxdata+=(
30303030   (stv2_current_tilemap.scrollx & (xlinesize-1)) +
3031   ((stv2_current_tilemap.scrolly) * (xlinesize)) + /* TODO: mask ysize, check me! */
3031   ((stv2_current_tilemap.scrolly & (ysize-1)) * (xlinesize)) + /* TODO: mask ysize, check me! */
30323032   (stv2_current_tilemap.bitmap_map * 0x20000)
30333033   );
30343034   gfxdatahigh = gfxdatalow + xlinesize*ysize;
r12398r12399
41724172      return;
41734173   }
41744174
4175//   window_applied =
4175//   window_applied =
41764176   stv_vdp2_apply_window_on_layer(machine,&mycliprect);
41774177
41784178   if (stv2_current_tilemap.bitmap_enable) // this layer is a bitmap

Previous 15994 Revisions Next


© 1998-2018 The MESS Team