Previous 199869 Revisions Next

r34532 Thursday 22nd January, 2015 at 07:04:01 UTC by Alex W. Jackson
Remove dead code (nw)
[src/mame/video]pc080sn.c tc0080vco.c tc0480scp.c wgp.c

trunk/src/mame/video/pc080sn.c
r243043r243044
377377
378378   UINT16 a, color;
379379   int sx, x_index;
380   int i, y, y_index, src_y_index, row_index;
380   int y_index, src_y_index, row_index;
381381
382382   int flip = 0;
383   int machine_flip = 0;   /* for  ROT 180 ? */
384383
385384   int min_x = cliprect.min_x;
386385   int max_x = cliprect.max_x;
r243043r243044
400399      y_index = 0;
401400   }
402401
403   if (!machine_flip)
404      y = min_y;
405   else
406      y = max_y;
407
408   do
402   for (int y = min_y; y <= max_y; y++)
409403   {
410404      src_y_index = y_index & 0x1ff;  /* tilemaps are 512 px up/down */
411405      row_index = (src_y_index - m_bgscrolly[layer]) & 0x1ff;
r243043r243044
419413
420414      if (flags & TILEMAP_DRAW_OPAQUE)
421415      {
422         for (i = 0; i < screen_width; i++)
416         for (int i = 0; i < screen_width; i++)
423417         {
424418            a = src16[x_index & width_mask];
425419#ifdef TOPSPEED_ROAD_COLORS
r243043r243044
431425      }
432426      else
433427      {
434         for (i = 0; i < screen_width; i++)
428         for (int i = 0; i < screen_width; i++)
435429         {
436430            if (tsrc[x_index & width_mask])
437431            {
r243043r243044
449443
450444      taitoic_drawscanline(bitmap, cliprect, 0, y, scanline, (flags & TILEMAP_DRAW_OPAQUE) ? 0 : 1, ROT0, screen.priority(), priority);
451445      y_index++;
452
453      if (!machine_flip)
454         y++;
455      else
456         y--;
457446   }
458   while ((!machine_flip && y <= max_y) || (machine_flip && y >= min_y));
459447}
460448
461449void pc080sn_device::tilemap_draw( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer, int flags, UINT32 priority )
trunk/src/mame/video/tc0080vco.c
r243043r243044
439439
440440      int sx, zoomx, zoomy;
441441      int dx, ex, dy, ey;
442      int i, y, y_index, src_y_index, row_index;
442      int y_index, src_y_index, row_index;
443443      int x_index, x_step;
444444
445445      int flip = m_flipscreen;
446      int machine_flip = 0;   /* for  ROT 180 ? */
447446
448447      int min_x = cliprect.min_x;
449448      int max_x = cliprect.max_x;
r243043r243044
501500         y_index = ((-m_scroll_ram[3] - 2) << 16) + min_y * zoomy - (max_y + min_y) * (zoomy - 0x10000);
502501      }
503502
504      if (!machine_flip)
505         y = min_y;
506      else
507         y = max_y;
508
509      do
503      for (int y = min_y; y <= max_y; y++)
510504      {
511505         src_y_index = (y_index >> 16) & 0x3ff;  /* tilemaps are 1024 px up/down */
512506
r243043r243044
525519
526520         if (flags & TILEMAP_DRAW_OPAQUE)
527521         {
528            for (i = 0; i < screen_width; i++)
522            for (int i = 0; i < screen_width; i++)
529523            {
530524               *dst16++ = src16[(x_index >> 16) & width_mask];
531525               x_index += x_step;
r243043r243044
533527         }
534528         else
535529         {
536            for (i = 0; i < screen_width; i++)
530            for (int i = 0; i < screen_width; i++)
537531            {
538532               if (tsrc[(x_index >> 16) & width_mask])
539533                  *dst16++ = src16[(x_index >> 16) & width_mask];
r243043r243044
546540         taitoic_drawscanline(bitmap, cliprect, 0, y, scanline, (flags & TILEMAP_DRAW_OPAQUE) ? 0 : 1 , ROT0, screen.priority(), priority);
547541
548542         y_index += zoomy;
549
550         if (!machine_flip)
551            y++;
552         else
553            y--;
554543      }
555      while ((!machine_flip && y <= max_y) || (machine_flip && y >= min_y));
556544   }
557545}
558546
trunk/src/mame/video/tc0480scp.c
r243043r243044
717717      bitmap_ind16 &srcbitmap = m_tilemap[layer][m_dblwidth]->pixmap();
718718      bitmap_ind8 &flagsbitmap = m_tilemap[layer][m_dblwidth]->flagsmap();
719719      int flip = m_pri_reg & 0x40;
720      int i, y, y_index, src_y_index, row_index;
720      int y_index, src_y_index, row_index;
721721      int x_index, x_step;
722722
723723      UINT16 screen_width = 512; //cliprect.width();
r243043r243044
745745         y_index -= (m_y_offset - min_y) * zoomy;
746746      }
747747
748      y = min_y;
749
750      do
748      for (int y = min_y; y <= max_y; y++)
751749      {
752750         src_y_index = (y_index >> 16) & 0x1ff;
753751
r243043r243044
766764
767765         if (flags & TILEMAP_DRAW_OPAQUE)
768766         {
769            for (i = 0; i < screen_width; i++)
767            for (int i = 0; i < screen_width; i++)
770768            {
771769               *dst16++ = src16[(x_index >> 16) & width_mask];
772770               x_index += x_step;
r243043r243044
774772         }
775773         else
776774         {
777            for (i = 0; i < screen_width; i++)
775            for (int i = 0; i < screen_width; i++)
778776            {
779777               if (tsrc[(x_index >> 16) & width_mask])
780778                  *dst16++ = src16[(x_index >> 16) & width_mask];
r243043r243044
787785         taitoic_drawscanline(bitmap, cliprect, 0, y, scanline, (flags & TILEMAP_DRAW_OPAQUE) ? 0 : 1, ROT0, screen.priority(), priority);
788786
789787         y_index += zoomy;
790         y++;
791788      }
792      while (y <= max_y);
793
794789   }
795790}
796791
r243043r243044
838833
839834   UINT16 *dst16, *src16;
840835   UINT8 *tsrc;
841   int i, y, y_index, src_y_index, row_index, row_zoom;
836   int y_index, src_y_index, row_index, row_zoom;
842837   int sx, x_index, x_step;
843838   UINT32 zoomx, zoomy;
844839   UINT16 scanline[512];
r243043r243044
876871      y_index -= (m_y_offset - min_y) * zoomy;
877872   }
878873
879      y = min_y;
880
881   do
874   for (int y = min_y; y <= max_y; y++)
882875   {
883876      if (!flipscreen)
884877         src_y_index = ((y_index>>16) + m_bgcolumn_ram[layer][(y - m_y_offset) & 0x1ff]) & 0x1ff;
r243043r243044
917910
918911      if (flags & TILEMAP_DRAW_OPAQUE)
919912      {
920         for (i = 0; i < screen_width; i++)
913         for (int i = 0; i < screen_width; i++)
921914         {
922915            *dst16++ = src16[(x_index >> 16) & width_mask];
923916            x_index += x_step;
r243043r243044
925918      }
926919      else
927920      {
928         for (i = 0; i < screen_width; i++)
921         for (int i = 0; i < screen_width; i++)
929922         {
930923            if (tsrc[(x_index >> 16) & width_mask])
931924               *dst16++ = src16[(x_index >> 16) & width_mask];
r243043r243044
938931      taitoic_drawscanline(bitmap, cliprect, 0, y, scanline, (flags & TILEMAP_DRAW_OPAQUE) ? 0 : 1, ROT0, screen.priority(), priority);
939932
940933      y_index += zoomy;
941      y++;
942934   }
943   while (y<=max_y);
944935}
945936
946937
trunk/src/mame/video/wgp.c
r243043r243044
514514
515515   UINT16 *dst16,*src16;
516516   UINT8 *tsrc;
517   int i, y, y_index, src_y_index, row_index, row_zoom;
517   int y_index, src_y_index, row_index, row_zoom;
518518
519519   /* I have a fairly strong feeling these should be UINT32's, x_index is
520520      falling through from max +ve to max -ve quite a lot in this routine */
r243043r243044
524524   UINT16 scanline[512];
525525   UINT16 row_colbank, row_scroll;
526526   int flipscreen = 0; /* n/a */
527   int machine_flip = 0;   /* for  ROT 180 ? */
528527
529528   UINT16 screen_width = cliprect.width();
530529   UINT16 min_y = cliprect.min_y;
r243043r243044
558557      y_index = 0;
559558   }
560559
561   if (!machine_flip)
562      y = min_y;
563   else
564      y = max_y;
565
566   do
560   for (int y = min_y; y <= max_y; y++)
567561   {
568562      int a;
569563
r243043r243044
598592
599593      if (flags & TILEMAP_DRAW_OPAQUE)
600594      {
601         for (i = 0; i < screen_width; i++)
595         for (int i = 0; i < screen_width; i++)
602596         {
603597            *dst16++ = src16[(x_index >> 16) & width_mask] + row_colbank;
604598            x_index += x_step;
r243043r243044
606600      }
607601      else
608602      {
609         for (i = 0; i < screen_width; i++)
603         for (int i = 0; i < screen_width; i++)
610604         {
611605            if (tsrc[(x_index >> 16) & width_mask])
612606               *dst16++ = src16[(x_index >> 16) & width_mask] + row_colbank;
r243043r243044
619613      bryan2_drawscanline(bitmap, 0, y, screen_width, scanline, (flags & TILEMAP_DRAW_OPAQUE) ? 0 : 1, ROT0, screen.priority(), priority);
620614
621615      y_index += zoomy;
622      if (!machine_flip) y++; else y--;
623616   }
624   while ((!machine_flip && y <= max_y) || (machine_flip && y >= min_y));
625
626617}
627618
628619


Previous 199869 Revisions Next


© 1997-2024 The MAME Team