diff options
Diffstat (limited to 'src/mame/video/jalblend.h')
-rw-r--r-- | src/mame/video/jalblend.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/mame/video/jalblend.h b/src/mame/video/jalblend.h index 89bdf596cbe..cbaa0d1729b 100644 --- a/src/mame/video/jalblend.h +++ b/src/mame/video/jalblend.h @@ -10,17 +10,17 @@ class jaleco_blend_device : public device_t { public: - jaleco_blend_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + jaleco_blend_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); ~jaleco_blend_device() {} - void set(int color, uint8_t val); - rgb_t func(rgb_t dest, rgb_t addMe, uint8_t alpha); + rgb_t func(rgb_t dest, rgb_t addMe); + rgb_t func(rgb_t dest, rgb_t addMe, u8 alpha); void drawgfx(palette_device &palette,bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx, - uint32_t code,uint32_t color,int flipx,int flipy,int offsx,int offsy, - int transparent_color); + u32 code,u32 color,bool flipx,bool flipy,int offsx,int offsy, + u8 transparent_color); void drawgfx(palette_device &palette,bitmap_rgb32 &dest_bmp,const rectangle &clip,gfx_element *gfx, - uint32_t code,uint32_t color,int flipx,int flipy,int offsx,int offsy, - int transparent_color); + u32 code,u32 color,bool flipx,bool flipy,int offsx,int offsy, + u8 transparent_color); protected: // device-level overrides @@ -28,13 +28,10 @@ protected: virtual void device_reset() override; private: - /* each palette entry contains a fourth 'alpha' value */ - std::unique_ptr<uint8_t[]> m_table; - template<class _BitmapClass> void drawgfx_common(palette_device &palette,_BitmapClass &dest_bmp,const rectangle &clip,gfx_element *gfx, - uint32_t code,uint32_t color,int flipx,int flipy,int offsx,int offsy, - int transparent_color); + u32 code,u32 color,bool flipx,bool flipy,int offsx,int offsy, + u8 transparent_color); }; DECLARE_DEVICE_TYPE(JALECO_BLEND, jaleco_blend_device) |