trunk/src/mame/video/fromance.c
| r20823 | r20824 | |
| 21 | 21 | |
| 22 | 22 | inline void fromance_state::get_fromance_tile_info( tile_data &tileinfo, int tile_index, int layer ) |
| 23 | 23 | { |
| 24 | | //OBRISI.ME |
| 25 | 24 | int tile = ((m_local_videoram[layer][0x0000 + tile_index] & 0x80) << 9) | |
| 26 | 25 | (m_local_videoram[layer][0x1000 + tile_index] << 8) | |
| 27 | 26 | m_local_videoram[layer][0x2000 + tile_index]; |
| r20823 | r20824 | |
| 36 | 35 | |
| 37 | 36 | inline void fromance_state::get_nekkyoku_tile_info( tile_data &tileinfo, int tile_index, int layer ) |
| 38 | 37 | { |
| 39 | | //OBRISI.ME |
| 40 | 38 | int tile = (m_local_videoram[layer][0x0000 + tile_index] << 8) | |
| 41 | 39 | m_local_videoram[layer][0x1000 + tile_index]; |
| 42 | 40 | int color = m_local_videoram[layer][tile_index + 0x2000] & 0x3f; |
| r20823 | r20824 | |
| 57 | 55 | |
| 58 | 56 | void fromance_state::init_common( ) |
| 59 | 57 | { |
| 60 | | //OBRISI.ME |
| 61 | 58 | |
| 62 | 59 | /* allocate local videoram */ |
| 63 | 60 | m_local_videoram[0] = auto_alloc_array(machine(), UINT8, 0x1000 * 3); |
trunk/src/mame/video/fuukifg2.c
| r20823 | r20824 | |
| 46 | 46 | |
| 47 | 47 | inline void fuuki16_state::get_tile_info(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_) |
| 48 | 48 | { |
| 49 | | //OBRISI.ME |
| 50 | 49 | UINT16 code = m_vram[_N_][2 * tile_index + 0]; |
| 51 | 50 | UINT16 attr = m_vram[_N_][2 * tile_index + 1]; |
| 52 | 51 | SET_TILE_INFO_MEMBER(1 + _N_, code, attr & 0x3f, TILE_FLIPYX((attr >> 6) & 3)); |
| r20823 | r20824 | |
| 265 | 264 | /* Wrapper to handle bg and bg2 ttogether */ |
| 266 | 265 | void fuuki16_state::fuuki16_draw_layer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri ) |
| 267 | 266 | { |
| 268 | | //OBRISI.ME |
| 269 | 267 | int buffer = (m_vregs[0x1e / 2] & 0x40); |
| 270 | 268 | |
| 271 | 269 | switch( i ) |
trunk/src/mame/video/fuukifg3.c
| r20823 | r20824 | |
| 50 | 50 | |
| 51 | 51 | inline void fuuki32_state::get_tile_info8bpp(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_) |
| 52 | 52 | { |
| 53 | | //OBRISI.ME |
| 54 | 53 | UINT16 code = (m_vram[_N_][tile_index] & 0xffff0000) >> 16; |
| 55 | 54 | UINT16 attr = (m_vram[_N_][tile_index] & 0x0000ffff); |
| 56 | 55 | SET_TILE_INFO_MEMBER(1 + _N_, code, (attr & 0x3f) >> 4, TILE_FLIPYX((attr >> 6) & 3)); |
| r20823 | r20824 | |
| 61 | 60 | |
| 62 | 61 | inline void fuuki32_state::get_tile_info4bpp(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_) |
| 63 | 62 | { |
| 64 | | //OBRISI.ME |
| 65 | 63 | UINT16 code = (m_vram[_N_][tile_index] & 0xffff0000) >> 16; |
| 66 | 64 | UINT16 attr = (m_vram[_N_][tile_index] & 0x0000ffff); |
| 67 | 65 | SET_TILE_INFO_MEMBER(1 + _N_, code, attr & 0x3f, TILE_FLIPYX((attr >> 6) & 3)); |
| r20823 | r20824 | |
| 288 | 286 | /* Wrapper to handle bg and bg2 ttogether */ |
| 289 | 287 | void fuuki32_state::fuuki32_draw_layer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri ) |
| 290 | 288 | { |
| 291 | | //OBRISI.ME |
| 292 | 289 | int buffer = ((m_vregs[0x1e / 4] & 0x0000ffff) & 0x40); |
| 293 | 290 | |
| 294 | 291 | switch( i ) |
trunk/src/mame/video/firetrk.c
| r20823 | r20824 | |
| 247 | 247 | |
| 248 | 248 | void firetrk_state::firetrk_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int which, int flash) |
| 249 | 249 | { |
| 250 | | //OBRISI.ME |
| 251 | 250 | int gfx_bank, code, color, flip_x, flip_y, x, y; |
| 252 | 251 | |
| 253 | 252 | if (which) |
| r20823 | r20824 | |
| 277 | 276 | |
| 278 | 277 | void firetrk_state::superbug_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int flash) |
| 279 | 278 | { |
| 280 | | //OBRISI.ME |
| 281 | 279 | int gfx_bank = (*m_car_rot & 0x10) ? 4 : 3; |
| 282 | 280 | int code = ~*m_car_rot & 0x03; |
| 283 | 281 | int color = flash ? 1 : 0; |
| r20823 | r20824 | |
| 290 | 288 | |
| 291 | 289 | void firetrk_state::montecar_draw_car(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element **gfx, int which, int is_collision_detection) |
| 292 | 290 | { |
| 293 | | //OBRISI.ME |
| 294 | 291 | int gfx_bank, code, color, flip_x, flip_y, x, y; |
| 295 | 292 | |
| 296 | 293 | if (which) |
trunk/src/mame/video/fromanc2.c
| r20823 | r20824 | |
| 17 | 17 | |
| 18 | 18 | inline void fromanc2_state::fromanc2_get_tile_info( tile_data &tileinfo, int tile_index, int vram, int layer ) |
| 19 | 19 | { |
| 20 | | //OBRISI.ME |
| 21 | 20 | int tile, color; |
| 22 | 21 | |
| 23 | 22 | tile = (m_videoram[vram][layer][tile_index] & 0x3fff) | (m_gfxbank[vram][layer] << 14); |
| r20823 | r20824 | |
| 38 | 37 | |
| 39 | 38 | inline void fromanc2_state::fromancr_get_tile_info( tile_data &tileinfo, int tile_index, int vram, int layer ) |
| 40 | 39 | { |
| 41 | | //OBRISI.ME |
| 42 | 40 | int tile, color; |
| 43 | 41 | |
| 44 | 42 | tile = m_videoram[vram][layer][tile_index] | (m_gfxbank[vram][layer] << 16); |
| r20823 | r20824 | |
| 162 | 160 | |
| 163 | 161 | inline void fromanc2_state::fromanc2_dispvram_w( offs_t offset, UINT16 data, UINT16 mem_mask, int vram, int layer ) |
| 164 | 162 | { |
| 165 | | //OBRISI.ME |
| 166 | 163 | layer += (offset < 0x1000) ? 0 : 1; |
| 167 | 164 | |
| 168 | 165 | COMBINE_DATA(&m_videoram[vram][layer][offset & 0x0fff]); |
| r20823 | r20824 | |
| 253 | 250 | |
| 254 | 251 | inline void fromanc2_state::fromancr_vram_w(offs_t offset, UINT16 data, UINT16 mem_mask, int layer ) |
| 255 | 252 | { |
| 256 | | //OBRISI.ME |
| 257 | 253 | int vram = (offset < 0x1000) ? 0 : 1; |
| 258 | 254 | |
| 259 | 255 | COMBINE_DATA(&m_videoram[vram][layer][offset & 0x0fff]); |
| r20823 | r20824 | |
| 292 | 288 | |
| 293 | 289 | void fromanc2_state::fromancr_gfxbank_w( int data ) |
| 294 | 290 | { |
| 295 | | //OBRISI.ME |
| 296 | 291 | |
| 297 | 292 | m_gfxbank[0][0] = (data & 0x0010) >> 4; // BG (1P) |
| 298 | 293 | m_gfxbank[0][1] = (data & 0xf000) >> 12; // FG (1P) |
| r20823 | r20824 | |
| 307 | 302 | |
| 308 | 303 | inline void fromanc2_state::fromanc4_vram_w( offs_t offset, UINT16 data, UINT16 mem_mask, int layer ) |
| 309 | 304 | { |
| 310 | | //OBRISI.ME |
| 311 | 305 | int vram = (offset < 0x4000) ? 0 : 1; |
| 312 | 306 | |
| 313 | 307 | COMBINE_DATA(&m_videoram[vram][layer][offset & 0x3fff]); |