trunk/src/mame/video/blueprnt.c
| r20054 | r20055 | |
| 56 | 56 | { |
| 57 | 57 | m_colorram[offset] = data; |
| 58 | 58 | m_bg_tilemap->mark_tile_dirty(offset); |
| 59 | | |
| 60 | | offset+=32; |
| 61 | | offset &=0x3ff; |
| 62 | | m_bg_tilemap->mark_tile_dirty(offset); |
| 63 | 59 | } |
| 64 | 60 | |
| 65 | 61 | WRITE8_MEMBER(blueprnt_state::blueprnt_flipscreen_w) |
| r20054 | r20055 | |
| 88 | 84 | // or flipscreen after startup... this certainly doesn't work for 'Saturn' |
| 89 | 85 | TILE_GET_INFO_MEMBER(blueprnt_state::get_bg_tile_info_grasspin) |
| 90 | 86 | { |
| 91 | | int attr = m_colorram[tile_index] & 0x3f; |
| 92 | | attr |= m_colorram[(tile_index+32)&0x3ff] & 0xc0; // from the next row? |
| 93 | | |
| 94 | | |
| 87 | int attr = m_colorram[tile_index]; |
| 95 | 88 | int code = m_videoram[tile_index]; |
| 96 | | |
| 97 | | |
| 98 | 89 | int color = attr & 0x7f; |
| 99 | 90 | |
| 100 | 91 | tileinfo.category = (attr & 0x80) ? 1 : 0; |
| 92 | if ((attr & 0x40)) code += 0x100; |
| 101 | 93 | |
| 102 | | if ((attr & 0x40)) code += m_gfx_bank * 0x100; |
| 103 | | else code &=0xff; |
| 104 | | |
| 105 | 94 | SET_TILE_INFO_MEMBER(0, code, color, 0); |
| 106 | 95 | } |
| 107 | 96 | |