From ecc881c7a33bed09ecf3419fb717ec280ed68cb2 Mon Sep 17 00:00:00 2001 From: David Haywood Date: Thu, 21 Mar 2013 09:37:40 +0000 Subject: [PATCH] minor code tweak (nw) --- src/mame/drivers/coolridr.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mame/drivers/coolridr.c b/src/mame/drivers/coolridr.c index 74cfa538568..73d9e048999 100644 --- a/src/mame/drivers/coolridr.c +++ b/src/mame/drivers/coolridr.c @@ -1097,11 +1097,15 @@ UINT32 coolridr_state::screen_update_coolridr2(screen_device &screen, bitmap_ind #define DO_XCLIP_REAL \ if (drawx>clipmaxX) { break; } \ if (drawxindirect_zoom[v*16+realy]; \ - UINT16 hZoomTable = hZoom + (dword>>16); \ + UINT16 hZoomHere = hZoom + (dword>>16); \ /* bit 0x8000 does get set too, but only on some lines, might have another meaning? */ \ int linescroll = dword&0x7fff; \ if (linescroll & 0x4000) linescroll -= 0x8000; \ @@ -1135,7 +1139,6 @@ UINT32 coolridr_state::screen_update_coolridr2(screen_device &screen, bitmap_ind { \ int realy = ((y*incy)>>21); \ GET_CURRENT_LINESCROLLZOOM \ - UINT16 hZoomHere = hZoomTable; \ if (!hZoomHere) { drawy++; continue; } \ const int pixelOffsetX = ((hPositionTable) + (h* 16 * hZoomHere)) / 0x40; \ const int pixelOffsetnextX = ((hPositionTable) + ((h+1)* 16 * hZoomHere)) / 0x40; \