summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/tecmo_mix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/tecmo_mix.h')
-rw-r--r--src/mame/video/tecmo_mix.h28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/mame/video/tecmo_mix.h b/src/mame/video/tecmo_mix.h
index ee0681d5a72..69b3d5ef326 100644
--- a/src/mame/video/tecmo_mix.h
+++ b/src/mame/video/tecmo_mix.h
@@ -40,8 +40,12 @@ public:
m_spblend_source = spblend_source;
m_fgblend_source = fgblend_source;
}
+ void set_bgpen(int bgpen, int bgpen_blend)
+ {
+ m_bgpen = bgpen;
+ m_bgpen_blend = bgpen_blend;
+ }
void set_revspritetile() { m_revspritetile = 3; }
- void set_bgpen(int bgpen) { m_bgpen = bgpen; }
protected:
virtual void device_start() override;
@@ -67,8 +71,10 @@ protected:
int m_txregular_comp;
int m_spregular_comp;
- int m_revspritetile;
int m_bgpen;
+ int m_bgpen_blend;
+
+ int m_revspritetile;
private:
uint32_t sum_colors(const pen_t *pal, int c1_idx, int c2_idx);
@@ -78,22 +84,4 @@ DECLARE_DEVICE_TYPE(TECMO_MIXER, tecmo_mix_device)
-#define MCFG_TECMO_MIXER_SHIFTS(_sprpri_shift, _sprbln_shift, _sprcol_shift) \
- downcast<tecmo_mix_device &>(*device).set_mixer_shifts(_sprpri_shift, _sprbln_shift, _sprcol_shift);
-
-#define MCFG_TECMO_MIXER_BLENDCOLS(_bgblend_comp, _fgblend_comp, _txblend_comp, _spblend_comp) \
- downcast<tecmo_mix_device &>(*device).set_blendcols(_bgblend_comp, _fgblend_comp, _txblend_comp, _spblend_comp);
-
-#define MCFG_TECMO_MIXER_REGULARCOLS(_bgregular_comp, _fgregular_comp, _txregular_comp, _spregular_comp) \
- downcast<tecmo_mix_device &>(*device).set_regularcols(_bgregular_comp, _fgregular_comp, _txregular_comp, _spregular_comp);
-
-#define MCFG_TECMO_MIXER_BLENDSOURCE(_spblend_source, _fgblend_source) \
- downcast<tecmo_mix_device &>(*device).set_blendsource(_spblend_source, _fgblend_source);
-
-#define MCFG_TECMO_MIXER_REVSPRITETILE \
- downcast<tecmo_mix_device &>(*device).set_revspritetile();
-
-#define MCFG_TECMO_MIXER_BGPEN(_bgpen) \
- downcast<tecmo_mix_device &>(*device).set_bgpen(_bgpen);
-
#endif // MAME_VIDEO_TECMO_MIX_H