diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2018-05-26 08:05:40 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2018-05-26 08:05:40 +0200 |
commit | f24ac839ac171543aef3a4c1e7d547faf4838cb5 (patch) | |
tree | 75647af2b82c34c8bd17701a79000cc49c174627 /src/mame/video | |
parent | 6890040b502514fe0335d328391886163bebdcea (diff) |
malzak.cpp: removed unused tag look-up (nw)
Diffstat (limited to 'src/mame/video')
-rw-r--r-- | src/mame/video/malzak.cpp | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/mame/video/malzak.cpp b/src/mame/video/malzak.cpp index 54484ba49ff..88f406cc398 100644 --- a/src/mame/video/malzak.cpp +++ b/src/mame/video/malzak.cpp @@ -15,25 +15,22 @@ #include "emu.h" -#include "video/saa5050.h" #include "includes/malzak.h" -uint32_t malzak_state::screen_update_malzak(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) +uint32_t malzak_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { const rgb_t *palette = m_palette->palette()->entry_list_raw(); - int sx, sy; - int x,y; bitmap.fill(rgb_t::black(), cliprect); m_trom->screen_update(screen, bitmap, cliprect); // playfield - not sure exactly how this works... - for (x = 0; x < 16; x++) - for (y = 0; y < 16; y++) + for (int x = 0; x < 16; x++) + for (int y = 0; y < 16; y++) { - sx = ((x * 16 - 48) - m_malzak_x) * 2; - sy = ((y * 16) - m_malzak_y) * 2; + int sx = ((x * 16 - 48) - m_malzak_x) * 2; + int sy = ((y * 16) - m_malzak_y) * 2; if (sx < -271*2) sx += 512*2; @@ -44,18 +41,14 @@ uint32_t malzak_state::screen_update_malzak(screen_device &screen, bitmap_rgb32 } /* update the S2636 chips */ - bitmap_ind16 const &s2636_0_bitmap = m_s2636_0->update(cliprect); - bitmap_ind16 const &s2636_1_bitmap = m_s2636_1->update(cliprect); + bitmap_ind16 const &s2636_0_bitmap = m_s2636[0]->update(cliprect); + bitmap_ind16 const &s2636_1_bitmap = m_s2636[1]->update(cliprect); /* copy the S2636 images into the main bitmap */ { - int y; - - for (y = cliprect.min_y; y <= cliprect.max_y / 2; y++) + for (int y = cliprect.min_y; y <= cliprect.max_y / 2; y++) { - int x; - - for (x = cliprect.min_x; x <= cliprect.max_x / 2; x++) + for (int x = cliprect.min_x; x <= cliprect.max_x / 2; x++) { int pixel0 = s2636_0_bitmap.pix16(y, x); int pixel1 = s2636_1_bitmap.pix16(y, x); |