summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/deco_zoomspr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/deco_zoomspr.cpp')
-rw-r--r--src/mame/video/deco_zoomspr.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/video/deco_zoomspr.cpp b/src/mame/video/deco_zoomspr.cpp
index d63941c62a4..e930e82d458 100644
--- a/src/mame/video/deco_zoomspr.cpp
+++ b/src/mame/video/deco_zoomspr.cpp
@@ -93,27 +93,27 @@ inline void deco_zoomspr_device::dragngun_drawgfxzoom(
y_index = 0;
}
- if( sx < clip.min_x)
+ if( sx < clip.left())
{ /* clip left */
- int pixels = clip.min_x-sx;
+ int pixels = clip.left()-sx;
sx += pixels;
x_index_base += pixels*dx;
}
- if( sy < clip.min_y )
+ if( sy < clip.top() )
{ /* clip top */
- int pixels = clip.min_y-sy;
+ int pixels = clip.top()-sy;
sy += pixels;
y_index += pixels*dy;
}
/* NS 980211 - fixed incorrect clipping */
- if( ex > clip.max_x+1 )
+ if( ex > clip.right()+1 )
{ /* clip right */
- int pixels = ex-clip.max_x-1;
+ int pixels = ex-clip.right()-1;
ex -= pixels;
}
- if( ey > clip.max_y+1 )
+ if( ey > clip.bottom()+1 )
{ /* clip bottom */
- int pixels = ey-clip.max_y-1;
+ int pixels = ey-clip.bottom()-1;
ey -= pixels;
}
@@ -396,12 +396,12 @@ void deco_zoomspr_device::dragngun_draw_sprites( bitmap_rgb32 &bitmap, const rec
}
}
- for (int y = cliprect.min_y; y <= cliprect.max_y; y++)
+ for (int y = cliprect.top(); y <= cliprect.bottom(); y++)
{
uint32_t *src = &temp_bitmap.pix32(y);
uint32_t *dst = &bitmap.pix32(y);
- for (int x = cliprect.min_x; x <= cliprect.max_x; x++)
+ for (int x = cliprect.left(); x <= cliprect.right(); x++)
{
uint32_t srcpix = src[x];