summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/beathead.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/beathead.cpp')
-rw-r--r--src/mame/video/beathead.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/beathead.cpp b/src/mame/video/beathead.cpp
index 5c6586b4fdc..daff388b72a 100644
--- a/src/mame/video/beathead.cpp
+++ b/src/mame/video/beathead.cpp
@@ -145,29 +145,29 @@ uint32_t beathead_state::screen_update(screen_device &screen, bitmap_ind16 &bitm
int x, y;
/* generate the final screen */
- for (y = cliprect.min_y; y <= cliprect.max_y; y++)
+ for (y = cliprect.top(); y <= cliprect.bottom(); y++)
{
pen_t pen_base = (*m_palette_select & 0x7f) * 256;
uint16_t scanline[336];
/* blanking */
if (m_finescroll & 8)
- for (x = cliprect.min_x; x <= cliprect.max_x; x++)
+ for (x = cliprect.left(); x <= cliprect.right(); x++)
scanline[x] = pen_base;
/* non-blanking */
else
{
offs_t scanline_offset = m_vram_latch_offset + (m_finescroll & 3);
- offs_t src = scanline_offset + cliprect.min_x;
+ offs_t src = scanline_offset + cliprect.left();
/* unswizzle the scanline first */
- for (x = cliprect.min_x; x <= cliprect.max_x; x++)
+ for (x = cliprect.left(); x <= cliprect.right(); x++)
scanline[x] = pen_base | videoram[BYTE4_XOR_LE(src++)];
}
/* then draw it */
- draw_scanline16(bitmap, cliprect.min_x, y, cliprect.width(), &scanline[cliprect.min_x], nullptr);
+ draw_scanline16(bitmap, cliprect.left(), y, cliprect.width(), &scanline[cliprect.left()], nullptr);
}
return 0;
}