Previous 199869 Revisions Next

r17693 Friday 7th September, 2012 at 09:26:43 UTC by Miodrag Milanović
fix compile (nw)
[src/mame/video]taitoic.c

trunk/src/mame/video/taitoic.c
r17692r17693
586586    DEVICE HANDLERS
587587*****************************************************************************/
588588
589INLINE void common_get_pc080sn_bg_tile_info( device_t *device, tile_data &tileinfo, int tile_index, UINT16 *ram, int gfxnum )
589INLINE void common_get_pc080sn_bg_tile_info( running_machine &machine, device_t *device, tile_data &tileinfo, int tile_index, UINT16 *ram, int gfxnum )
590590{
591591   pc080sn_state *pc080sn = pc080sn_get_safe_token(device);
592592   UINT16 code, attr;
r17692r17693
602602      attr = ram[tile_index];
603603   }
604604
605   SET_TILE_INFO_DEVICE(
605   SET_TILE_INFO(
606606         gfxnum,
607607         code,
608608         (attr & 0x1ff),
609609         TILE_FLIPYX((attr & 0xc000) >> 14));
610610}
611611
612INLINE void common_get_pc080sn_fg_tile_info( device_t *device, tile_data &tileinfo, int tile_index, UINT16 *ram, int gfxnum )
612INLINE void common_get_pc080sn_fg_tile_info( running_machine &machine,  device_t *device, tile_data &tileinfo, int tile_index, UINT16 *ram, int gfxnum )
613613{
614614   pc080sn_state *pc080sn = pc080sn_get_safe_token(device);
615615   UINT16 code,attr;
r17692r17693
625625      attr = ram[tile_index];
626626   }
627627
628   SET_TILE_INFO_DEVICE(
628   SET_TILE_INFO(
629629         gfxnum,
630630         code,
631631         (attr & 0x1ff),
r17692r17693
635635TILE_GET_INFO_MEMBER(pc080sn_device::pc080sn_get_bg_tile_info)
636636{
637637   pc080sn_state *pc080sn = pc080sn_get_safe_token(this);
638   common_get_pc080sn_bg_tile_info(this, tileinfo, tile_index, pc080sn->bg_ram[0], pc080sn->bg_gfx);
638   common_get_pc080sn_bg_tile_info(machine(), this, tileinfo, tile_index, pc080sn->bg_ram[0], pc080sn->bg_gfx);
639639}
640640
641641TILE_GET_INFO_MEMBER(pc080sn_device::pc080sn_get_fg_tile_info)
642642{
643643   pc080sn_state *pc080sn = pc080sn_get_safe_token(this);
644   common_get_pc080sn_fg_tile_info(this, tileinfo, tile_index, pc080sn->bg_ram[1], pc080sn->bg_gfx);
644   common_get_pc080sn_fg_tile_info(machine(), this, tileinfo, tile_index, pc080sn->bg_ram[1], pc080sn->bg_gfx);
645645}
646646
647647

Previous 199869 Revisions Next


© 1997-2024 The MAME Team