mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
minor code tweak (nw)
This commit is contained in:
parent
ef5e121b57
commit
ecc881c7a3
@ -1097,11 +1097,15 @@ UINT32 coolridr_state::screen_update_coolridr2(screen_device &screen, bitmap_ind
|
|||||||
#define DO_XCLIP_REAL \
|
#define DO_XCLIP_REAL \
|
||||||
if (drawx>clipmaxX) { break; } \
|
if (drawx>clipmaxX) { break; } \
|
||||||
if (drawx<clipminX) { drawx++; continue; }
|
if (drawx<clipminX) { drawx++; continue; }
|
||||||
#define DO_XCLIP_NONE
|
|
||||||
|
#define DO_XCLIP_NONE \
|
||||||
|
{ \
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#define GET_CURRENT_LINESCROLLZOOM \
|
#define GET_CURRENT_LINESCROLLZOOM \
|
||||||
UINT32 dword = object->indirect_zoom[v*16+realy]; \
|
UINT32 dword = object->indirect_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? */ \
|
/* bit 0x8000 does get set too, but only on some lines, might have another meaning? */ \
|
||||||
int linescroll = dword&0x7fff; \
|
int linescroll = dword&0x7fff; \
|
||||||
if (linescroll & 0x4000) linescroll -= 0x8000; \
|
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); \
|
int realy = ((y*incy)>>21); \
|
||||||
GET_CURRENT_LINESCROLLZOOM \
|
GET_CURRENT_LINESCROLLZOOM \
|
||||||
UINT16 hZoomHere = hZoomTable; \
|
|
||||||
if (!hZoomHere) { drawy++; continue; } \
|
if (!hZoomHere) { drawy++; continue; } \
|
||||||
const int pixelOffsetX = ((hPositionTable) + (h* 16 * hZoomHere)) / 0x40; \
|
const int pixelOffsetX = ((hPositionTable) + (h* 16 * hZoomHere)) / 0x40; \
|
||||||
const int pixelOffsetnextX = ((hPositionTable) + ((h+1)* 16 * hZoomHere)) / 0x40; \
|
const int pixelOffsetnextX = ((hPositionTable) + ((h+1)* 16 * hZoomHere)) / 0x40; \
|
||||||
|
Loading…
Reference in New Issue
Block a user