diff options
Diffstat (limited to 'src/mame/video/k007121.h')
-rw-r--r-- | src/mame/video/k007121.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mame/video/k007121.h b/src/mame/video/k007121.h index 4b1833c5a73..52b49ab5ba8 100644 --- a/src/mame/video/k007121.h +++ b/src/mame/video/k007121.h @@ -8,12 +8,14 @@ public: k007121_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); ~k007121_device() {} + static void static_set_palette_tag(device_t &device, const char *tag); + DECLARE_READ8_MEMBER( ctrlram_r ); DECLARE_WRITE8_MEMBER( ctrl_w ); /* shall we move source in the interface? */ /* also notice that now we directly pass *gfx[chip] instead of **gfx !! */ - void sprites_draw( bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx, colortable_t *ctable, const UINT8 *source, int base_color, int global_x_offset, int bank_base, bitmap_ind8 &priority_bitmap, UINT32 pri_mask ); + void sprites_draw( bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx, palette_device *palette, const UINT8 *source, int base_color, int global_x_offset, int bank_base, bitmap_ind8 &priority_bitmap, UINT32 pri_mask ); protected: // device-level overrides @@ -25,6 +27,7 @@ private: // internal state UINT8 m_ctrlram[8]; int m_flipscreen; + required_device<palette_device> m_palette; }; extern const device_type K007121; @@ -32,4 +35,7 @@ extern const device_type K007121; #define MCFG_K007121_ADD(_tag) \ MCFG_DEVICE_ADD(_tag, K007121, 0) +#define MCFG_K007121_PALETTE(_palette_tag) \ + k007121_device::static_set_palette_tag(*device, "^" _palette_tag); + #endif |