summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/highvdeo.c
diff options
context:
space:
mode:
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
commit59d84eb1b05c653c1e5c727e648e807bc8340baf (patch)
tree837413310dbe2d9b678860c072206bb244e8e693 /src/mame/drivers/highvdeo.c
parent051af55fa90955e11ba7fb08b586ba3227c4f7d1 (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/drivers/highvdeo.c')
-rw-r--r--src/mame/drivers/highvdeo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/highvdeo.c b/src/mame/drivers/highvdeo.c
index 080689516c2..4e3675cf2a3 100644
--- a/src/mame/drivers/highvdeo.c
+++ b/src/mame/drivers/highvdeo.c
@@ -125,12 +125,12 @@ static SCREEN_UPDATE_RGB32(tourvisn)
color = ((state->m_blit_ram[count]) & 0x00ff)>>0;
- if((x*2)<screen.visible_area().max_x && ((y)+0)<screen.visible_area().max_y)
+ if(cliprect.contains((x*2)+0, y))
bitmap.pix32(y, (x*2)+0) = screen.machine().pens[color];
color = ((state->m_blit_ram[count]) & 0xff00)>>8;
- if(((x*2)+1)<screen.visible_area().max_x && ((y)+0)<screen.visible_area().max_y)
+ if(cliprect.contains((x*2)+1, y))
bitmap.pix32(y, (x*2)+1) = screen.machine().pens[color];
count++;
@@ -162,7 +162,7 @@ static SCREEN_UPDATE_RGB32(brasil)
b = (color & 0x001f) << 3;
g = (color & 0x07e0) >> 3;
r = (color & 0xf800) >> 8;
- if(x<screen.visible_area().max_x && y<screen.visible_area().max_y)
+ if(cliprect.contains(x, y))
bitmap.pix32(y, x) = b | (g<<8) | (r<<16);
count++;