diff options
Diffstat (limited to 'src/mame/video/dynax.cpp')
-rw-r--r-- | src/mame/video/dynax.cpp | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/src/mame/video/dynax.cpp b/src/mame/video/dynax.cpp index 0fd9007937c..6cdbf33beca 100644 --- a/src/mame/video/dynax.cpp +++ b/src/mame/video/dynax.cpp @@ -647,7 +647,6 @@ VIDEO_START_MEMBER(dynax_state,neruton) void dynax_state::hanamai_copylayer(bitmap_ind16 &bitmap, const rectangle &cliprect, int i ) { int color; - int scrollx, scrolly; switch (i) { @@ -660,8 +659,8 @@ void dynax_state::hanamai_copylayer(bitmap_ind16 &bitmap, const rectangle &clipr color += (m_blit_palbank & 0x0f) * 16; - scrollx = m_blit_scroll_x; - scrolly = m_blit_scroll_y; + int scrollx = m_blit_scroll_x; + int scrolly = m_blit_scroll_y; if (i == 1 && (m_layer_layout == LAYOUT_HANAMAI || m_layer_layout == LAYOUT_HNORIDUR)) { @@ -670,16 +669,16 @@ void dynax_state::hanamai_copylayer(bitmap_ind16 &bitmap, const rectangle &clipr } { - int dy, length, pen; - uint8_t *src1 = m_pixmap[i][1].get(); - uint8_t *src2 = m_pixmap[i][0].get(); + uint8_t const *src1 = m_pixmap[i][1].get(); + uint8_t const *src2 = m_pixmap[i][0].get(); - int palbase = 16 * color; + int const palbase = 16 * color; - for (dy = 0; dy < 256; dy++) + for (int dy = 0; dy < 256; dy++) { + int length, pen; uint16_t *dst; - uint16_t *dstbase = &bitmap.pix16((dy - scrolly) & 0xff); + uint16_t *const dstbase = &bitmap.pix((dy - scrolly) & 0xff); length = scrollx; dst = dstbase + 2 * (256 - length); @@ -736,17 +735,17 @@ void dynax_state::jantouki_copylayer( bitmap_ind16 &bitmap, const rectangle &cli } { - int dy, length, pen; - uint8_t *src1 = m_pixmap[i][1].get(); - uint8_t *src2 = m_pixmap[i][0].get(); + uint8_t const *src1 = m_pixmap[i][1].get(); + uint8_t const *src2 = m_pixmap[i][0].get(); - int palbase = 16 * color; + int const palbase = 16 * color; - for (dy = 0; dy < 256; dy++) + for (int dy = 0; dy < 256; dy++) { - int sy = ((dy - scrolly) & 0xff) + y; + int length, pen; + int const sy = ((dy - scrolly) & 0xff) + y; uint16_t *dst; - uint16_t *dstbase = &bitmap.pix16(sy); + uint16_t *const dstbase = &bitmap.pix(sy); if ((sy < cliprect.top()) || (sy > cliprect.bottom())) { @@ -784,7 +783,6 @@ void dynax_state::jantouki_copylayer( bitmap_ind16 &bitmap, const rectangle &cli void dynax_state::mjdialq2_copylayer( bitmap_ind16 &bitmap, const rectangle &cliprect, int i ) { int color; - int scrollx, scrolly; switch (i) { @@ -795,19 +793,19 @@ void dynax_state::mjdialq2_copylayer( bitmap_ind16 &bitmap, const rectangle &cli color += (m_blit_palbank & 1) * 16; - scrollx = m_blit_scroll_x; - scrolly = m_blit_scroll_y; + int const scrollx = m_blit_scroll_x; + int const scrolly = m_blit_scroll_y; { - int dy, length, pen; - uint8_t *src = m_pixmap[i][0].get(); + uint8_t const *src = m_pixmap[i][0].get(); - int palbase = 16 * color; + int const palbase = 16 * color; - for (dy = 0; dy < 256; dy++) + for (int dy = 0; dy < 256; dy++) { + int length, pen; uint16_t *dst; - uint16_t *dstbase = &bitmap.pix16((dy - scrolly) & 0xff); + uint16_t *const dstbase = &bitmap.pix((dy - scrolly) & 0xff); length = scrollx; dst = dstbase + 256 - length; |