Previous 199869 Revisions Next

r21512 Friday 1st March, 2013 at 12:04:41 UTC by David Haywood
fix text
[src/mame/drivers]gunpey.c

trunk/src/mame/drivers/gunpey.c
r21511r21512
321321         int xsource = ((val & 0x000000ff) << 4) | ((val & 0xf0000000) >> 28);
322322         int ysource = ((val & 0x0000f000) >> 10);
323323
324         xsource<<=1;
324325
325
326326#ifdef USE_FAKE_ROM
327327         if (letter != -1)
328328            drawgfx_opaque(bitmap,cliprect,machine().gfx[1],letter,1,0,0,x,y);
r21511r21512
334334            {
335335               for(int xi=0;xi<width/2;xi++)
336336               {
337                  UINT8 data = vram[((((ysource+yi)&0x7ff)*0x400) + ((xsource+xi)&0x3ff))];
337                  UINT8 data = vram[((((ysource+yi)&0x7ff)*0x800) + ((xsource+xi)&0x7ff))];
338338
339339                  UINT8 pix;
340340
r21511r21512
472472      //if (srcx & 0xf800) printf("(error srcx &0xf800)");
473473      //if (srcy & 0xf800) printf("(error srcy &0xf800)");
474474
475      // these are definitely needed for 4bpp..
476      dstx<<=1;
477      xsize<<=1;
475478
476479      for (int y=0;y<ysize;y++)
477480      {
478481         for (int x=0;x<xsize;x++)
479482         {
480            vram[(((dsty+y)&0x3ff)*0x400)+((dstx+x)&0x3ff)] = blit_rom[(((srcy+y)&0x7ff)*0x800)+((srcx+x)&0x7ff)];
483            vram[(((dsty+y)&0x3ff)*0x800)+((dstx+x)&0x7ff)] = blit_rom[(((srcy+y)&0x7ff)*0x800)+((srcx+x)&0x7ff)];
481484         }
482485      }
483486
r21511r21512
689692// this isn't a real decode as such, but the graphic data is all stored in pages 2048 bytes wide at varying BPP levelsl, some (BG data) compressed with what is likely a lossy scheme
690693// palette data is in here too, the blocks at the bottom right of all this?
691694static GFXLAYOUT_RAW( gunpey, 2048, 1, 2048*8, 2048*8 )
692static GFXLAYOUT_RAW( gunpey1024, 1024, 1, 1024*8, 1024*8 )
695//static GFXLAYOUT_RAW( gunpey1024, 1024, 1, 1024*8, 1024*8 )
693696
694697static GFXDECODE_START( gunpey )
695698   GFXDECODE_ENTRY( "blit_data", 0, gunpey,     0x0000, 0x1 )
696699   GFXDECODE_ENTRY( "fakerom", 0x18000, fake_layout,   0x0, 2  )
697   GFXDECODE_ENTRY( "vram", 0, gunpey1024,     0x0000, 0x1 )
700   //GFXDECODE_ENTRY( "vram", 0, gunpey1024,     0x0000, 0x1 )
701   GFXDECODE_ENTRY( "vram", 0, gunpey,     0x0000, 0x1 )
698702
699703GFXDECODE_END
700704

Previous 199869 Revisions Next


© 1997-2024 The MAME Team