Previous 15994 Revisions Next

r5388 Sunday 9th August, 2009 at 21:02:03 UTC by Angelo Salese
[SNES]: Fixed vram size when in hires mode
[src/mame/video]snes.c

src/mame/video/snes.c
r5387r5388
478478         break;
479479   }
480480
481   for (ii = 0; ii < (66 >> tile_size); ii += 2)
481   for (ii = 0; ii < (66*(hires+1) >> tile_size); ii += 2)
482482   {
483483      /* Have we scrolled into the next map? */
484484      if (hscroll && ((ii >> 1) >= 32 - (hscroll & 0x1f)))
r5387r5388
629629   if (layer == 1)   // BG2 use two different bits for horizontal and vertical mosaic
630630   {
631631      mosaic_x = snes_ppu.mosaic_table[snes_ppu.layer[1].mosaic_enabled ? snes_ppu.mosaic_size : 0];
632      mosaic_y = snes_ppu.mosaic_table[snes_ppu.layer[0].mosaic_enabled ? snes_ppu.mosaic_size : 0];
632      mosaic_y = snes_ppu.mosaic_table[snes_ppu.layer[0].mosaic_enabled ? snes_ppu.mosaic_size : 0];
633633   }
634634   else   // BG1 works as usual
635635   {
r5387r5388
646646   {
647647      tx = (x0 + (ma * mosaic_x[sx])) >> 8;
648648      ty = (y0 + (mc * mosaic_x[sx])) >> 8;
649     
649
650650      switch (snes_ppu.mode7.repeat)
651651      {
652652         case 0x00:   /* Repeat if outside screen area */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team