trunk/src/mame/video/vsystem_spr.c
| r18530 | r18531 | |
| 62 | 62 | #include "emu.h" |
| 63 | 63 | #include "vsystem_spr.h" |
| 64 | 64 | |
| 65 | | /* game specific tile indirection callbacks for different HW hookups */ |
| 66 | | UINT32 inufuku_tile_callback( UINT32 code, UINT16* lookupram1, UINT16* lookupram2 ) |
| 67 | | { |
| 68 | | return ((lookupram1[code*2] & 0x0007) << 16) + lookupram1[(code*2)+ 1]; |
| 69 | | } |
| 70 | 65 | |
| 71 | | UINT32 suprslam_tile_callback( UINT32 code, UINT16* lookupram1, UINT16* lookupram2 ) |
| 72 | | { |
| 73 | | return lookupram1[code]; |
| 74 | | } |
| 75 | 66 | |
| 76 | | UINT32 crshrace_tile_callback( UINT32 code, UINT16* lookupram1, UINT16* lookupram2 ) |
| 77 | | { |
| 78 | | return lookupram1[code&0x7fff]; |
| 79 | | } |
| 80 | 67 | |
| 81 | | UINT32 f1gp2_tile_callback( UINT32 code, UINT16* lookupram1, UINT16* lookupram2 ) |
| 82 | | { |
| 83 | | return lookupram1[code&0x3fff]; |
| 84 | | } |
| 85 | 68 | |
| 86 | | UINT32 gstriker_tile_callback( UINT32 code, UINT16* lookupram1, UINT16* lookupram2 ) |
| 87 | | { |
| 88 | | // straight through |
| 89 | | return code; |
| 90 | | } |
| 91 | 69 | |
| 92 | | UINT32 taotaido_tile_callback( UINT32 code, UINT16* lookupram1, UINT16* lookupram2 ) |
| 93 | | { |
| 94 | | code = lookupram1[code&0x7fff]; |
| 95 | | |
| 96 | | if (code > 0x3fff) |
| 97 | | { |
| 98 | | int block = (code & 0x3800)>>11; |
| 99 | | code &= 0x07ff; |
| 100 | | code |= lookupram2[block] * 0x800; |
| 101 | | } |
| 102 | | |
| 103 | | return code; |
| 104 | | } |
| 105 | | |
| 106 | | |
| 107 | 70 | const device_type VSYSTEM_SPR = &device_creator<vsystem_spr_device>; |
| 108 | 71 | |
| 109 | 72 | vsystem_spr_device::vsystem_spr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| r18530 | r18531 | |
| 114 | 77 | m_xoffs = 0; |
| 115 | 78 | m_yoffs = 0; |
| 116 | 79 | m_pdraw = false; |
| 80 | |
| 81 | m_newtilecb = vsystem_tile_indirection_delegate(FUNC(vsystem_spr_device::tile_callback_noindirect), this); |
| 117 | 82 | } |
| 118 | 83 | |
| 84 | UINT32 vsystem_spr_device::tile_callback_noindirect(UINT32 tile) |
| 85 | { |
| 86 | return tile; |
| 87 | } |
| 88 | |
| 89 | |
| 119 | 90 | // static |
| 91 | void vsystem_spr_device::set_tile_indirect_callback(device_t &device,vsystem_tile_indirection_delegate newtilecb) |
| 92 | { |
| 93 | vsystem_spr_device &dev = downcast<vsystem_spr_device &>(device); |
| 94 | dev.m_newtilecb = newtilecb; |
| 95 | } |
| 96 | |
| 97 | |
| 98 | // static |
| 120 | 99 | void vsystem_spr_device::set_offsets(device_t &device, int xoffs, int yoffs) |
| 121 | 100 | { |
| 122 | 101 | vsystem_spr_device &dev = downcast<vsystem_spr_device &>(device); |
| r18530 | r18531 | |
| 183 | 162 | } |
| 184 | 163 | |
| 185 | 164 | |
| 186 | | void vsystem_spr_device::common_sprite_drawgfx(int gfxrgn, UINT16* spriteram2, UINT16* spriteram3, vsystem_spr_tile_indirection_callback tilecb, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 165 | void vsystem_spr_device::common_sprite_drawgfx(int gfxrgn, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 187 | 166 | { |
| 188 | 167 | gfx_element *gfx = machine.gfx[gfxrgn]; |
| 189 | 168 | int priority_mask = 0x00; |
| r18530 | r18531 | |
| 222 | 201 | int xcnt = xstart; |
| 223 | 202 | while (xcnt != xend) |
| 224 | 203 | { |
| 225 | | int startno = tilecb(curr_sprite.map++, spriteram2, spriteram3); |
| 204 | int startno = m_newtilecb(curr_sprite.map++); |
| 226 | 205 | if (m_pdraw) |
| 227 | 206 | { |
| 228 | 207 | pdrawgfxzoom_transpen(bitmap, cliprect, gfx, startno, curr_sprite.color + m_pal_base, curr_sprite.flipx, curr_sprite.flipy, curr_sprite.ox + xcnt * curr_sprite.zoomx/2, curr_sprite.oy + ycnt * curr_sprite.zoomy/2, curr_sprite.zoomx << 11, curr_sprite.zoomy << 11, machine.priority_bitmap,priority_mask, m_transpen); |
| r18530 | r18531 | |
| 246 | 225 | |
| 247 | 226 | |
| 248 | 227 | |
| 249 | | void vsystem_spr_device::draw_sprites_inufuku( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 228 | void vsystem_spr_device::draw_sprites_inufuku( UINT16* spriteram, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 250 | 229 | { |
| 251 | 230 | int offs; |
| 252 | 231 | int end = 0; |
| r18530 | r18531 | |
| 269 | 248 | |
| 270 | 249 | curr_sprite.map &= 0x7fff; |
| 271 | 250 | |
| 272 | | common_sprite_drawgfx(2, spriteram2, NULL, inufuku_tile_callback, machine, bitmap, cliprect); |
| 251 | common_sprite_drawgfx(2, machine, bitmap, cliprect); |
| 273 | 252 | } |
| 274 | 253 | } |
| 275 | 254 | } |
| 276 | 255 | |
| 277 | 256 | |
| 278 | | void vsystem_spr_device::draw_sprites_suprslam( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 257 | void vsystem_spr_device::draw_sprites_suprslam( UINT16* spriteram, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 279 | 258 | { |
| 280 | 259 | UINT16 *source = spriteram; |
| 281 | 260 | UINT16 *source2 = spriteram; |
| r18530 | r18531 | |
| 293 | 272 | |
| 294 | 273 | curr_sprite.map &= 0x7fff; |
| 295 | 274 | |
| 296 | | common_sprite_drawgfx(1, spriteram2, NULL, suprslam_tile_callback, machine, bitmap, cliprect); |
| 275 | common_sprite_drawgfx(1, machine, bitmap, cliprect); |
| 297 | 276 | } |
| 298 | 277 | } |
| 299 | 278 | |
| 300 | 279 | |
| 301 | 280 | |
| 302 | | void vsystem_spr_device::draw_sprite_taotaido( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, UINT16* spriteram3, running_machine &machine, UINT16 spriteno, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 281 | void vsystem_spr_device::draw_sprite_taotaido( UINT16* spriteram, int spriteram_bytes, running_machine &machine, UINT16 spriteno, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 303 | 282 | { |
| 304 | 283 | UINT16 *source = &spriteram[spriteno*4]; |
| 305 | 284 | |
| r18530 | r18531 | |
| 308 | 287 | curr_sprite.map &= 0xffff; |
| 309 | 288 | curr_sprite.color &= 0x1f; |
| 310 | 289 | |
| 311 | | common_sprite_drawgfx(0, spriteram2, spriteram3, taotaido_tile_callback, machine, bitmap, cliprect); |
| 290 | common_sprite_drawgfx(0, machine, bitmap, cliprect); |
| 312 | 291 | } |
| 313 | 292 | |
| 314 | | void vsystem_spr_device::draw_sprites_taotaido( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, UINT16* spriteram3, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 293 | void vsystem_spr_device::draw_sprites_taotaido( UINT16* spriteram, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 315 | 294 | { |
| 316 | 295 | UINT16 *source = spriteram; |
| 317 | 296 | UINT16 *finish = spriteram + spriteram_bytes/2; |
| r18530 | r18531 | |
| 320 | 299 | { |
| 321 | 300 | if (source[0] == 0x4000) break; |
| 322 | 301 | |
| 323 | | draw_sprite_taotaido(spriteram, spriteram_bytes, spriteram2, spriteram3, machine, source[0]&0x3ff, bitmap, cliprect); |
| 302 | draw_sprite_taotaido(spriteram, spriteram_bytes, machine, source[0]&0x3ff, bitmap, cliprect); |
| 324 | 303 | |
| 325 | 304 | source++; |
| 326 | 305 | } |
| r18530 | r18531 | |
| 328 | 307 | |
| 329 | 308 | |
| 330 | 309 | |
| 331 | | void vsystem_spr_device::draw_sprites_crshrace(UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect, int flipscreen) |
| 310 | void vsystem_spr_device::draw_sprites_crshrace(UINT16* spriteram, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect, int flipscreen) |
| 332 | 311 | { |
| 333 | 312 | int offs; |
| 334 | 313 | |
| r18530 | r18531 | |
| 344 | 323 | curr_sprite.color &= 0x1f; |
| 345 | 324 | curr_sprite.map &= 0x7fff; |
| 346 | 325 | |
| 347 | | common_sprite_drawgfx(2, spriteram2, NULL, crshrace_tile_callback, machine, bitmap, cliprect); |
| 326 | common_sprite_drawgfx(2, machine, bitmap, cliprect); |
| 348 | 327 | } |
| 349 | 328 | } |
| 350 | 329 | |
| 351 | 330 | |
| 352 | 331 | |
| 353 | | void vsystem_spr_device::draw_sprites_aerofght( UINT16* spriteram3, int spriteram_bytes, UINT16* spriteram1, UINT16* spriteram2, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int pri ) |
| 332 | void vsystem_spr_device::draw_sprites_aerofght( UINT16* spriteram3, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int pri ) |
| 354 | 333 | { |
| 355 | 334 | int offs; |
| 356 | 335 | pri <<= 12; |
| r18530 | r18531 | |
| 368 | 347 | curr_sprite.color &=0x1f; |
| 369 | 348 | curr_sprite.map &= 0x3fff; |
| 370 | 349 | |
| 371 | | common_sprite_drawgfx(2, spriteram1, NULL, crshrace_tile_callback, machine, bitmap, cliprect); |
| 350 | common_sprite_drawgfx(2, machine, bitmap, cliprect); |
| 372 | 351 | |
| 373 | 352 | } |
| 374 | 353 | offs++; |
| r18530 | r18531 | |
| 376 | 355 | } |
| 377 | 356 | |
| 378 | 357 | |
| 379 | | void vsystem_spr_device::f1gp2_draw_sprites(UINT16* spritelist, UINT16* sprcgram, int flipscreen, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 358 | void vsystem_spr_device::f1gp2_draw_sprites(UINT16* spritelist, int flipscreen, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 380 | 359 | { |
| 381 | 360 | int offs; |
| 382 | 361 | |
| r18530 | r18531 | |
| 392 | 371 | curr_sprite.color &= 0x1f; |
| 393 | 372 | curr_sprite.map &= 0x7fff; |
| 394 | 373 | |
| 395 | | common_sprite_drawgfx(1, sprcgram, NULL, f1gp2_tile_callback, machine, bitmap, cliprect); |
| 374 | common_sprite_drawgfx(1, machine, bitmap, cliprect); |
| 396 | 375 | } |
| 397 | 376 | } |
| 398 | 377 | |
| r18530 | r18531 | |
| 407 | 386 | if (curr_sprite.pri != drawpri) |
| 408 | 387 | return; |
| 409 | 388 | |
| 410 | | common_sprite_drawgfx(m_gfx_region, NULL, NULL, gstriker_tile_callback, machine, bitmap, cliprect); |
| 389 | common_sprite_drawgfx(m_gfx_region, machine, bitmap, cliprect); |
| 411 | 390 | } |
| 412 | 391 | |
| 413 | 392 | |
trunk/src/mame/video/vsystem_spr.h
| r18530 | r18531 | |
| 1 | 1 | // Video System Sprites |
| 2 | 2 | |
| 3 | 3 | |
| 4 | typedef delegate<UINT32 (UINT32)> vsystem_tile_indirection_delegate; |
| 5 | |
| 4 | 6 | /*** CG10103 **********************************************/ |
| 5 | 7 | |
| 6 | | typedef UINT32 (*vsystem_spr_tile_indirection_callback)(UINT32 code, UINT16* lookupram1, UINT16* lookupram2); |
| 7 | | |
| 8 | 8 | class vsystem_spr_device : public device_t |
| 9 | 9 | { |
| 10 | 10 | public: |
| r18530 | r18531 | |
| 12 | 12 | |
| 13 | 13 | static void set_offsets(device_t &device, int xoffs, int yoffs); |
| 14 | 14 | static void set_pdraw(device_t &device, bool pdraw); |
| 15 | static void set_tile_indirect_callback(device_t &device,vsystem_tile_indirection_delegate newtilecb); |
| 15 | 16 | |
| 17 | UINT32 tile_callback_noindirect(UINT32 tile); |
| 18 | vsystem_tile_indirection_delegate m_newtilecb; |
| 16 | 19 | |
| 17 | | |
| 18 | 20 | int m_xoffs, m_yoffs; |
| 19 | 21 | bool m_pdraw; |
| 20 | 22 | |
| r18530 | r18531 | |
| 39 | 41 | } curr_sprite; |
| 40 | 42 | |
| 41 | 43 | void get_sprite_attributes(UINT16* ram); |
| 42 | | void common_sprite_drawgfx(int gfxrgn, UINT16* spriteram2, UINT16* spriteram3, vsystem_spr_tile_indirection_callback tilecb, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 44 | void common_sprite_drawgfx(int gfxrgn, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 43 | 45 | |
| 44 | | void draw_sprites_inufuku( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 45 | | void draw_sprites_suprslam( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 46 | | void draw_sprite_taotaido( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, UINT16* spriteram3, running_machine &machine, UINT16 spriteno, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 47 | | void draw_sprites_taotaido( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, UINT16* spriteram3, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 48 | | void draw_sprites_crshrace( UINT16* spriteram, int spriteram_bytes, UINT16* spriteram2, running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect, int flipscreen); |
| 49 | | void draw_sprites_aerofght( UINT16* spriteram3, int spriteram_bytes, UINT16* spriteram1, UINT16* spriteram2, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int priority ); |
| 50 | | void f1gp2_draw_sprites(UINT16* spritelist, UINT16* sprcgram, int flipscreen, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 46 | void draw_sprites_inufuku( UINT16* spriteram, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 47 | void draw_sprites_suprslam( UINT16* spriteram, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 48 | void draw_sprite_taotaido( UINT16* spriteram, int spriteram_bytes, running_machine &machine, UINT16 spriteno, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 49 | void draw_sprites_taotaido( UINT16* spriteram, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 50 | void draw_sprites_crshrace( UINT16* spriteram, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect, int flipscreen); |
| 51 | void draw_sprites_aerofght( UINT16* spriteram3, int spriteram_bytes, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int priority ); |
| 52 | void f1gp2_draw_sprites(UINT16* spritelist, int flipscreen, running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 51 | 53 | |
| 52 | 54 | void CG10103_draw_sprite(running_machine &machine, bitmap_ind16& screen, const rectangle &cliprect, UINT16* spr, int drawpri); |
| 53 | 55 | void CG10103_draw(running_machine &machine, int numchip, bitmap_ind16& screen, const rectangle &cliprect, int priority); |
trunk/src/mame/video/aerofgt.c
| r18530 | r18531 | |
| 78 | 78 | |
| 79 | 79 | ***************************************************************************/ |
| 80 | 80 | |
| 81 | |
| 82 | |
| 81 | 83 | static void aerofgt_register_state_globals( running_machine &machine ) |
| 82 | 84 | { |
| 83 | 85 | aerofgt_state *state = machine.driver_data<aerofgt_state>(); |
| r18530 | r18531 | |
| 157 | 159 | } |
| 158 | 160 | |
| 159 | 161 | |
| 162 | |
| 163 | UINT32 aerofgt_state::aerofgt_tile_callback( UINT32 code ) |
| 164 | { |
| 165 | return m_spriteram1[code&0x7fff]; |
| 166 | } |
| 167 | |
| 168 | |
| 169 | VIDEO_START_MEMBER(aerofgt_state,aerofgt) |
| 170 | { |
| 171 | m_bg1_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(aerofgt_state::get_bg1_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64); |
| 172 | m_bg2_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(aerofgt_state::get_bg2_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64, 64); |
| 173 | |
| 174 | m_bg2_tilemap->set_transparent_pen(15); |
| 175 | |
| 176 | m_spritepalettebank = 0; |
| 177 | m_sprite_gfx = 2; |
| 178 | |
| 179 | aerofgt_register_state_globals(machine()); |
| 180 | |
| 181 | vsystem_spr_device::set_tile_indirect_callback(m_spr, vsystem_tile_indirection_delegate(FUNC(aerofgt_state::aerofgt_tile_callback), this)); // can this be moved to the MACHINE_CONFIG? |
| 182 | } |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 160 | 187 | /*************************************************************************** |
| 161 | 188 | |
| 162 | 189 | Memory handlers |
| r18530 | r18531 | |
| 381 | 408 | |
| 382 | 409 | m_bg1_tilemap->draw(bitmap, cliprect, 0, 0); |
| 383 | 410 | |
| 384 | | m_spr->draw_sprites_aerofght(m_spriteram3, m_spriteram3.bytes(), m_spriteram1, m_spriteram2, machine(), bitmap, cliprect, 0); |
| 385 | | m_spr->draw_sprites_aerofght(m_spriteram3, m_spriteram3.bytes(), m_spriteram1, m_spriteram2, machine(), bitmap, cliprect, 1); |
| 411 | m_spr->draw_sprites_aerofght(m_spriteram3, m_spriteram3.bytes(), machine(), bitmap, cliprect, 0); |
| 412 | m_spr->draw_sprites_aerofght(m_spriteram3, m_spriteram3.bytes(), machine(), bitmap, cliprect, 1); |
| 386 | 413 | |
| 387 | 414 | m_bg2_tilemap->draw(bitmap, cliprect, 0, 0); |
| 388 | 415 | |
| 389 | | m_spr->draw_sprites_aerofght(m_spriteram3, m_spriteram3.bytes(), m_spriteram1, m_spriteram2, machine(), bitmap, cliprect, 2); |
| 390 | | m_spr->draw_sprites_aerofght(m_spriteram3, m_spriteram3.bytes(), m_spriteram1, m_spriteram2, machine(), bitmap, cliprect, 3); |
| 416 | m_spr->draw_sprites_aerofght(m_spriteram3, m_spriteram3.bytes(), machine(), bitmap, cliprect, 2); |
| 417 | m_spr->draw_sprites_aerofght(m_spriteram3, m_spriteram3.bytes(), machine(), bitmap, cliprect, 3); |
| 391 | 418 | return 0; |
| 392 | 419 | } |
| 393 | 420 | |
trunk/src/mame/video/f1gp.c
| r18530 | r18531 | |
| 40 | 40 | |
| 41 | 41 | ***************************************************************************/ |
| 42 | 42 | |
| 43 | |
| 44 | |
| 45 | |
| 43 | 46 | VIDEO_START_MEMBER(f1gp_state,f1gp) |
| 44 | 47 | { |
| 45 | 48 | |
| r18530 | r18531 | |
| 69 | 72 | // save_pointer(NAME(m_zoomdata), memregion("gfx4")->bytes()); |
| 70 | 73 | } |
| 71 | 74 | |
| 75 | UINT32 f1gp_state::f1gp2_tile_callback( UINT32 code ) |
| 76 | { |
| 77 | return m_sprcgram[code&0x3fff]; |
| 78 | } |
| 79 | |
| 80 | |
| 72 | 81 | VIDEO_START_MEMBER(f1gp_state,f1gp2) |
| 73 | 82 | { |
| 74 | 83 | |
| r18530 | r18531 | |
| 80 | 89 | |
| 81 | 90 | m_fg_tilemap->set_scrolldx(-80, 0); |
| 82 | 91 | m_fg_tilemap->set_scrolldy(-26, 0); |
| 92 | |
| 93 | vsystem_spr_device::set_tile_indirect_callback(m_spr, vsystem_tile_indirection_delegate(FUNC(f1gp_state::f1gp2_tile_callback), this)); // can this be moved to the MACHINE_CONFIG? |
| 83 | 94 | } |
| 84 | 95 | |
| 85 | 96 | |
| r18530 | r18531 | |
| 199 | 210 | { |
| 200 | 211 | case 0: |
| 201 | 212 | k053936_zoom_draw(m_k053936, bitmap, cliprect, m_roz_tilemap, TILEMAP_DRAW_OPAQUE, 0, 1); |
| 202 | | m_spr->f1gp2_draw_sprites(m_spritelist, m_sprcgram, m_flipscreen, machine(), bitmap, cliprect); |
| 213 | m_spr->f1gp2_draw_sprites(m_spritelist, m_flipscreen, machine(), bitmap, cliprect); |
| 203 | 214 | m_fg_tilemap->draw(bitmap, cliprect, 0, 0); |
| 204 | 215 | break; |
| 205 | 216 | case 1: |
| 206 | 217 | k053936_zoom_draw(m_k053936, bitmap, cliprect, m_roz_tilemap, TILEMAP_DRAW_OPAQUE, 0, 1); |
| 207 | 218 | m_fg_tilemap->draw(bitmap, cliprect, 0, 0); |
| 208 | | m_spr->f1gp2_draw_sprites(m_spritelist, m_sprcgram, m_flipscreen, machine(), bitmap, cliprect); |
| 219 | m_spr->f1gp2_draw_sprites(m_spritelist, m_flipscreen, machine(), bitmap, cliprect); |
| 209 | 220 | break; |
| 210 | 221 | case 2: |
| 211 | 222 | m_fg_tilemap->draw(bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0); |
| 212 | 223 | k053936_zoom_draw(m_k053936, bitmap, cliprect, m_roz_tilemap, 0, 0, 1); |
| 213 | | m_spr->f1gp2_draw_sprites(m_spritelist, m_sprcgram, m_flipscreen, machine(), bitmap, cliprect); |
| 224 | m_spr->f1gp2_draw_sprites(m_spritelist, m_flipscreen, machine(), bitmap, cliprect); |
| 214 | 225 | break; |
| 215 | 226 | #ifdef MAME_DEBUG |
| 216 | 227 | case 3: |