trunk/src/mame/video/twin16.c
| r241568 | r241569 | |
| 21 | 21 | { |
| 22 | 22 | TWIN16_SCREEN_FLIPY = 0x01, |
| 23 | 23 | TWIN16_SCREEN_FLIPX = 0x02, // confirmed: Hard Puncher Intro |
| 24 | | TWIN16_UNKNOWN1 = 0x04, // ? Hard Puncher uses this |
| 24 | TWIN16_UNKNOWN_PRI0 = 0x04, // ? Hard Puncher uses this |
| 25 | 25 | TWIN16_PLANE_ORDER = 0x08, // confirmed: Devil Worlds |
| 26 | | TWIN16_TILE_FLIPX = 0x10, // unused? |
| 27 | | TWIN16_TILE_FLIPY = 0x20 // confirmed? Vulcan Venture |
| 26 | TWIN16_UNKNOWN_PRI2 = 0x10, // unused? |
| 27 | TWIN16_TILE_FLIPY = 0x20 // confirmed: Vulcan Venture |
| 28 | 28 | }; |
| 29 | 29 | |
| 30 | 30 | enum |
| r241568 | r241569 | |
| 107 | 107 | flip |= (m_video_register&TWIN16_SCREEN_FLIPY) ? TILEMAP_FLIPY : 0; |
| 108 | 108 | machine().tilemap().set_flip_all(flip); |
| 109 | 109 | } |
| 110 | | if (changed & (TWIN16_TILE_FLIPX | TWIN16_TILE_FLIPY)) |
| 110 | if (changed & TWIN16_TILE_FLIPY) |
| 111 | 111 | { |
| 112 | 112 | m_scroll_tmap[0]->mark_all_dirty(); |
| 113 | 113 | m_scroll_tmap[1]->mark_all_dirty(); |
| r241568 | r241569 | |
| 418 | 418 | int code = (data & 0x1fff); |
| 419 | 419 | int color = color_base + (data >> 13); |
| 420 | 420 | int flags = 0; |
| 421 | | if (m_video_register & TWIN16_TILE_FLIPX) flags |= TILE_FLIPX; |
| 422 | 421 | if (m_video_register & TWIN16_TILE_FLIPY) flags |= TILE_FLIPY; |
| 423 | 422 | SET_TILE_INFO_MEMBER(1, code, color, flags); |
| 424 | 423 | } |
| r241568 | r241569 | |
| 434 | 433 | int code = (m_gfx_bank[bank] << 11) | (data & 0x7ff); |
| 435 | 434 | int color = color_base | (data >> 13); |
| 436 | 435 | int flags = 0; |
| 437 | | if (m_video_register & TWIN16_TILE_FLIPX) flags |= TILE_FLIPX; |
| 438 | 436 | if (m_video_register & TWIN16_TILE_FLIPY) flags |= TILE_FLIPY; |
| 439 | 437 | SET_TILE_INFO_MEMBER(1, code, color, flags); |
| 440 | 438 | } |