trunk/src/mame/drivers/sfbonus.c
| r245626 | r245627 | |
| 462 | 462 | TILE_GET_INFO_MEMBER(get_sfbonus_reel4_tile_info); |
| 463 | 463 | virtual void machine_reset(); |
| 464 | 464 | virtual void video_start(); |
| 465 | | void draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int category); |
| 465 | void draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int catagory); |
| 466 | 466 | UINT32 screen_update_sfbonus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 467 | 467 | }; |
| 468 | 468 | |
| r245626 | r245627 | |
| 929 | 929 | |
| 930 | 930 | } |
| 931 | 931 | |
| 932 | | void sfbonus_state::draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int category) |
| 932 | void sfbonus_state::draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int catagory) |
| 933 | 933 | { |
| 934 | 934 | int zz; |
| 935 | 935 | int i; |
| r245626 | r245627 | |
| 1021 | 1021 | |
| 1022 | 1022 | if (rowenable2==0) |
| 1023 | 1023 | { |
| 1024 | | m_reel_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),3); |
| 1024 | m_reel_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),3); |
| 1025 | 1025 | } |
| 1026 | 1026 | if (rowenable==0) |
| 1027 | 1027 | { |
| 1028 | | m_reel_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),3); |
| 1028 | m_reel_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),3); |
| 1029 | 1029 | } |
| 1030 | 1030 | |
| 1031 | 1031 | if (rowenable2==0x1) |
| 1032 | 1032 | { |
| 1033 | | m_reel2_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),2); |
| 1033 | m_reel2_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),2); |
| 1034 | 1034 | } |
| 1035 | 1035 | if (rowenable==0x1) |
| 1036 | 1036 | { |
| 1037 | | m_reel2_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),2); |
| 1037 | m_reel2_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),2); |
| 1038 | 1038 | } |
| 1039 | 1039 | |
| 1040 | 1040 | if (rowenable2==0x2) |
| 1041 | 1041 | { |
| 1042 | | m_reel3_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),1); |
| 1042 | m_reel3_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),1); |
| 1043 | 1043 | } |
| 1044 | 1044 | if (rowenable==0x2) |
| 1045 | 1045 | { |
| 1046 | | m_reel3_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),1); |
| 1046 | m_reel3_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),1); |
| 1047 | 1047 | } |
| 1048 | 1048 | |
| 1049 | 1049 | if (rowenable2==0x3) |
| 1050 | 1050 | { |
| 1051 | | m_reel4_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),4); |
| 1051 | m_reel4_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),4); |
| 1052 | 1052 | } |
| 1053 | 1053 | if (rowenable==0x3) |
| 1054 | 1054 | { |
| 1055 | | m_reel4_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),4); |
| 1055 | m_reel4_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),4); |
| 1056 | 1056 | } |
| 1057 | 1057 | |
| 1058 | 1058 | |
trunk/src/mame/video/tia.c
| r245626 | r245627 | |
| 481 | 481 | |
| 482 | 482 | |
| 483 | 483 | void tia_video_device::draw_missile_helper(UINT8* p, UINT8* col, int horz, int skipdelay, int latch, int start, |
| 484 | | UINT8 RESMP, UINT8 ENAM, UINT8 NUSIZ, UINT8 COLUMN) |
| 484 | UINT8 RESMP, UINT8 ENAM, UINT8 NUSIZ, UINT8 COLUM) |
| 485 | 485 | { |
| 486 | 486 | int num = nusiz[NUSIZ & 7][0]; |
| 487 | 487 | int skp = nusiz[NUSIZ & 7][2]; |
| r245626 | r245627 | |
| 508 | 508 | if ( horz >= 0 ) |
| 509 | 509 | { |
| 510 | 510 | if ( horz < 156 ) { |
| 511 | | p[(horz + 1) % 160] = COLUMN >> 1; |
| 512 | | col[(horz + 1) % 160] = COLUMN >> 1; |
| 511 | p[(horz + 1) % 160] = COLUM >> 1; |
| 512 | col[(horz + 1) % 160] = COLUM >> 1; |
| 513 | 513 | } |
| 514 | | p[horz % 160] = COLUMN >> 1; |
| 515 | | col[horz % 160] = COLUMN >> 1; |
| 514 | p[horz % 160] = COLUM >> 1; |
| 515 | col[horz % 160] = COLUM >> 1; |
| 516 | 516 | } |
| 517 | 517 | break; |
| 518 | 518 | case 2: |
| 519 | 519 | case 3: |
| 520 | 520 | if ( horz >= 0 ) |
| 521 | 521 | { |
| 522 | | p[horz % 160] = COLUMN >> 1; |
| 523 | | col[horz % 160] = COLUMN >> 1; |
| 522 | p[horz % 160] = COLUM >> 1; |
| 523 | col[horz % 160] = COLUM >> 1; |
| 524 | 524 | } |
| 525 | 525 | break; |
| 526 | 526 | } |
| 527 | 527 | } else { |
| 528 | 528 | if ( horz >= 0 ) |
| 529 | 529 | { |
| 530 | | p[horz % 160] = COLUMN >> 1; |
| 531 | | col[horz % 160] = COLUMN >> 1; |
| 530 | p[horz % 160] = COLUM >> 1; |
| 531 | col[horz % 160] = COLUM >> 1; |
| 532 | 532 | } |
| 533 | 533 | } |
| 534 | 534 | } |
trunk/src/mame/video/tia.h
| r245626 | r245627 | |
| 66 | 66 | virtual void device_reset(); |
| 67 | 67 | |
| 68 | 68 | void draw_sprite_helper(UINT8* p, UINT8 *col, struct player_gfx *gfx, UINT8 GRP, UINT8 COLUP, UINT8 REFP); |
| 69 | | void draw_missile_helper(UINT8* p, UINT8* col, int horz, int skipdelay, int latch, int start, UINT8 RESMP, UINT8 ENAM, UINT8 NUSIZ, UINT8 COLUMN); |
| 69 | void draw_missile_helper(UINT8* p, UINT8* col, int horz, int skipdelay, int latch, int start, UINT8 RESMP, UINT8 ENAM, UINT8 NUSIZ, UINT8 COLUM); |
| 70 | 70 | void draw_playfield_helper(UINT8* p, UINT8* col, int horz, UINT8 COLU, UINT8 REFPF); |
| 71 | 71 | void draw_ball_helper(UINT8* p, UINT8* col, int horz, UINT8 ENAB); |
| 72 | 72 | void drawS0(UINT8* p, UINT8* col); |