diff options
Diffstat (limited to 'src/mame/video/amigaaga.cpp')
-rw-r--r-- | src/mame/video/amigaaga.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/amigaaga.cpp b/src/mame/video/amigaaga.cpp index 0cfc1f23c87..987cbdeb4ad 100644 --- a/src/mame/video/amigaaga.cpp +++ b/src/mame/video/amigaaga.cpp @@ -596,7 +596,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline) /* to render, we must have bitplane DMA enabled, at least 1 plane, and be within the */ /* vertical display window */ if ((CUSTOM_REG(REG_DMACON) & (DMACON_BPLEN | DMACON_DMAEN)) == (DMACON_BPLEN | DMACON_DMAEN) && - planes > 0 && scanline >= m_diw.min_y && scanline < m_diw.max_y) + planes > 0 && scanline >= m_diw.top() && scanline < m_diw.bottom()) { int pfpix0 = 0, pfpix1 = 0, collide; @@ -701,7 +701,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline) CUSTOM_REG(REG_CLXDAT) |= 0x001; /* if we are within the display region, render */ - if (dst != nullptr && x >= m_diw.min_x && x < m_diw.max_x) + if (dst != nullptr && x >= m_diw.left() && x < m_diw.right()) { int pix, pri; @@ -814,7 +814,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline) #endif /* end of the line: time to add the modulos */ - if (scanline >= m_diw.min_y && scanline < m_diw.max_y) + if (scanline >= m_diw.top() && scanline < m_diw.bottom()) { /* update odd planes */ for (pl = 0; pl < planes; pl += 2) @@ -853,11 +853,11 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline) uint32_t amiga_state::screen_update_amiga_aga(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { - if (cliprect.min_y != cliprect.max_y) + if (cliprect.top() != cliprect.bottom()) return 0; // render each scanline in the visible region - for (int y = cliprect.min_y; y <= cliprect.max_y; y++) + for (int y = cliprect.top(); y <= cliprect.bottom(); y++) aga_render_scanline(bitmap, y); return 0; |