summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/jangou.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-12-31 21:48:36 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-12-31 21:48:36 +0000
commitfcc81b7c6dcc40a8ae944616501f90963ca2aa08 (patch)
treed0e4ab76c92ca711073e8dd3113103083896156f /src/mame/drivers/jangou.c
parent0fb2402169d60ebe944a741408cc7268fd22ca80 (diff)
Bulk converted cliprect * to cliprect & across the system. This makes
cliprects mandatory everywhere. In general, cliprects were being correctly passed through the video side of most drivers already, so it is mostly a semantic change. Note that with my previous change, bitmaps have cliprects, so if you just want to clip to the bitmap's boundaries, pass bitmap->cliprect() instead of NULL (which is no longer permitted). [Aaron Giles]
Diffstat (limited to 'src/mame/drivers/jangou.c')
-rw-r--r--src/mame/drivers/jangou.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/jangou.c b/src/mame/drivers/jangou.c
index 9b4dde2a957..c8be977d0fe 100644
--- a/src/mame/drivers/jangou.c
+++ b/src/mame/drivers/jangou.c
@@ -125,12 +125,12 @@ static SCREEN_UPDATE( jangou )
jangou_state *state = screen.machine().driver_data<jangou_state>();
int x, y;
- for (y = cliprect->min_y; y <= cliprect->max_y; ++y)
+ for (y = cliprect.min_y; y <= cliprect.max_y; ++y)
{
- UINT8 *src = &state->m_blit_buffer[y * 512 / 2 + cliprect->min_x];
- UINT16 *dst = &bitmap->pix16(y, cliprect->min_x);
+ UINT8 *src = &state->m_blit_buffer[y * 512 / 2 + cliprect.min_x];
+ UINT16 *dst = &bitmap->pix16(y, cliprect.min_x);
- for (x = cliprect->min_x; x <= cliprect->max_x; x += 2)
+ for (x = cliprect.min_x; x <= cliprect.max_x; x += 2)
{
UINT32 srcpix = *src++;
*dst++ = screen.machine().pens[srcpix & 0xf];