diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-01-16 11:06:28 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-01-16 11:06:28 +0000 |
commit | 59d84eb1b05c653c1e5c727e648e807bc8340baf (patch) | |
tree | 837413310dbe2d9b678860c072206bb244e8e693 /src/mame/video/redclash.c | |
parent | 051af55fa90955e11ba7fb08b586ba3227c4f7d1 (diff) |
Fix several rendering issues with artwork, introduced in the
recent changes.
Also, did a pass through the code to take advantage of new
methods available on rectangles.
Diffstat (limited to 'src/mame/video/redclash.c')
-rw-r--r-- | src/mame/video/redclash.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/video/redclash.c b/src/mame/video/redclash.c index 0fcff897ce8..3a1e38141a4 100644 --- a/src/mame/video/redclash.c +++ b/src/mame/video/redclash.c @@ -283,8 +283,7 @@ static void draw_bullets( running_machine &machine, bitmap_ind16 &bitmap, const sx = 240 - sx; } - if (sx >= cliprect.min_x && sx <= cliprect.max_x && - sy >= cliprect.min_y && sy <= cliprect.max_y) + if (cliprect.contains(sx, sy)) bitmap.pix16(sy, sx) = 0x19; } } @@ -396,7 +395,7 @@ void redclash_draw_stars( running_machine &machine, bitmap_ind16 &bitmap, const else vcond = yloc & 0x01; - if (xloc >= cliprect.min_x && xloc <= cliprect.max_x && yloc >= cliprect.min_y && yloc <= cliprect.max_y) + if (cliprect.contains(xloc, yloc)) { if ((hcond ^ vcond) == 0) { |