summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/m14.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/m14.cpp')
-rw-r--r--src/mame/drivers/m14.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/mame/drivers/m14.cpp b/src/mame/drivers/m14.cpp
index 5a40e118da5..99bedecc74c 100644
--- a/src/mame/drivers/m14.cpp
+++ b/src/mame/drivers/m14.cpp
@@ -161,33 +161,31 @@ void m14_state::video_start()
void m14_state::draw_ball_and_paddle(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- int xi,yi;
//const rgb_t white_pen = rgb_t::white();
const uint8_t white_pen = 0x1f;
const int xoffs = -8; // matches left-right wall bounces
const int p_ybase = 184; // matches ball bounce to paddle
- int resx,resy;
// draw ball
- for(xi=0;xi<4;xi++)
- for(yi=0;yi<4;yi++)
+ for(int xi=0;xi<4;xi++)
+ for(int yi=0;yi<4;yi++)
{
- resx = flip_screen() ? 32*8-(m_ballx+xi+xoffs) : m_ballx+xi+xoffs;
- resy = flip_screen() ? 28*8-(m_bally+yi) : m_bally+yi;
+ const int resx = flip_screen() ? 32*8-(m_ballx+xi+xoffs) : m_ballx+xi+xoffs;
+ const int resy = flip_screen() ? 28*8-(m_bally+yi) : m_bally+yi;
if(cliprect.contains(resx,resy))
- bitmap.pix16(resy, resx) = m_palette->pen(white_pen);
+ bitmap.pix(resy, resx) = m_palette->pen(white_pen);
}
// draw paddle
- for(xi=0;xi<16;xi++)
- for(yi=0;yi<4;yi++)
+ for(int xi=0;xi<16;xi++)
+ for(int yi=0;yi<4;yi++)
{
- resx = flip_screen() ? 32*8-(m_paddlex+xi+xoffs) : (m_paddlex+xi+xoffs);
- resy = flip_screen() ? 28*8-(p_ybase+yi) : p_ybase+yi;
+ const int resx = flip_screen() ? 32*8-(m_paddlex+xi+xoffs) : (m_paddlex+xi+xoffs);
+ const int resy = flip_screen() ? 28*8-(p_ybase+yi) : p_ybase+yi;
if(cliprect.contains(resx,resy))
- bitmap.pix16(resy, resx) = m_palette->pen(white_pen);
+ bitmap.pix(resy, resx) = m_palette->pen(white_pen);
}