Previous 199869 Revisions Next

r22003 Thursday 21st March, 2013 at 09:37:40 UTC by David Haywood
minor code tweak (nw)
[src/mame/drivers]coolridr.c

trunk/src/mame/drivers/coolridr.c
r22002r22003
10971097#define DO_XCLIP_REAL \
10981098   if (drawx>clipmaxX) { break; } \
10991099   if (drawx<clipminX) { drawx++; continue; }
1100#define DO_XCLIP_NONE
11011100
1101#define DO_XCLIP_NONE \
1102   { \
1103   }
1104
1105
11021106#define GET_CURRENT_LINESCROLLZOOM \
11031107   UINT32 dword = object->indirect_zoom[v*16+realy]; \
1104   UINT16 hZoomTable = hZoom + (dword>>16); \
1108   UINT16 hZoomHere = hZoom + (dword>>16); \
11051109   /* bit 0x8000 does get set too, but only on some lines, might have another meaning? */ \
11061110   int linescroll = dword&0x7fff; \
11071111   if (linescroll & 0x4000) linescroll -= 0x8000; \
r22002r22003
11351139   { \
11361140      int realy = ((y*incy)>>21); \
11371141      GET_CURRENT_LINESCROLLZOOM \
1138      UINT16 hZoomHere = hZoomTable; \
11391142      if (!hZoomHere) { drawy++; continue; } \
11401143      const int pixelOffsetX = ((hPositionTable) + (h* 16 * hZoomHere)) / 0x40; \
11411144      const int pixelOffsetnextX = ((hPositionTable) + ((h+1)* 16 * hZoomHere)) / 0x40; \

Previous 199869 Revisions Next


© 1997-2024 The MAME Team