summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/tecmo_mix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/tecmo_mix.cpp')
-rw-r--r--src/mame/video/tecmo_mix.cpp48
1 files changed, 21 insertions, 27 deletions
diff --git a/src/mame/video/tecmo_mix.cpp b/src/mame/video/tecmo_mix.cpp
index ec1ac96a42c..7de58739f22 100644
--- a/src/mame/video/tecmo_mix.cpp
+++ b/src/mame/video/tecmo_mix.cpp
@@ -44,49 +44,43 @@ void tecmo_mix_device::device_reset()
-void tecmo_mix_device::set_mixer_shifts(device_t &device, int sprpri_shift, int sprbln_shift, int sprcol_shift)
+void tecmo_mix_device::set_mixer_shifts(int sprpri_shift, int sprbln_shift, int sprcol_shift)
{
- tecmo_mix_device &dev = downcast<tecmo_mix_device &>(device);
- dev.m_sprpri_shift = sprpri_shift;
- dev.m_sprbln_shift = sprbln_shift;
- dev.m_sprcol_shift = sprcol_shift;
+ m_sprpri_shift = sprpri_shift;
+ m_sprbln_shift = sprbln_shift;
+ m_sprcol_shift = sprcol_shift;
}
-void tecmo_mix_device::set_blendcols(device_t &device, int bgblend_comp, int fgblend_comp, int txblend_comp, int spblend_comp)
+void tecmo_mix_device::set_blendcols(int bgblend_comp, int fgblend_comp, int txblend_comp, int spblend_comp)
{
- tecmo_mix_device &dev = downcast<tecmo_mix_device &>(device);
- dev.m_bgblend_comp = bgblend_comp;
- dev.m_fgblend_comp = fgblend_comp;
- dev.m_txblend_comp = txblend_comp;
- dev.m_spblend_comp = spblend_comp;
+ m_bgblend_comp = bgblend_comp;
+ m_fgblend_comp = fgblend_comp;
+ m_txblend_comp = txblend_comp;
+ m_spblend_comp = spblend_comp;
}
-void tecmo_mix_device::set_regularcols(device_t &device, int bgregular_comp, int fgregular_comp, int txregular_comp, int spregular_comp)
+void tecmo_mix_device::set_regularcols(int bgregular_comp, int fgregular_comp, int txregular_comp, int spregular_comp)
{
- tecmo_mix_device &dev = downcast<tecmo_mix_device &>(device);
- dev.m_bgregular_comp = bgregular_comp;
- dev.m_fgregular_comp = fgregular_comp;
- dev.m_txregular_comp = txregular_comp;
- dev.m_spregular_comp = spregular_comp;
+ m_bgregular_comp = bgregular_comp;
+ m_fgregular_comp = fgregular_comp;
+ m_txregular_comp = txregular_comp;
+ m_spregular_comp = spregular_comp;
}
-void tecmo_mix_device::set_blendsource(device_t &device, int spblend_source, int fgblend_source)
+void tecmo_mix_device::set_blendsource(int spblend_source, int fgblend_source)
{
- tecmo_mix_device &dev = downcast<tecmo_mix_device &>(device);
- dev.m_spblend_source = spblend_source;
- dev.m_fgblend_source = fgblend_source;
+ m_spblend_source = spblend_source;
+ m_fgblend_source = fgblend_source;
}
-void tecmo_mix_device::set_revspritetile(device_t &device)
+void tecmo_mix_device::set_revspritetile()
{
- tecmo_mix_device &dev = downcast<tecmo_mix_device &>(device);
- dev.m_revspritetile = 3;
+ m_revspritetile = 3;
}
-void tecmo_mix_device::set_bgpen(device_t &device, int bgpen)
+void tecmo_mix_device::set_bgpen(int bgpen)
{
- tecmo_mix_device &dev = downcast<tecmo_mix_device &>(device);
- dev.m_bgpen = bgpen;
+ m_bgpen = bgpen;
}
uint32_t tecmo_mix_device::sum_colors(const pen_t *pal, int c1_idx, int c2_idx)