summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/drawgfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/drawgfx.cpp')
-rw-r--r--src/emu/drawgfx.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/emu/drawgfx.cpp b/src/emu/drawgfx.cpp
index 8c86de6ad9a..3a00569e32c 100644
--- a/src/emu/drawgfx.cpp
+++ b/src/emu/drawgfx.cpp
@@ -2014,8 +2014,7 @@ static inline void copyscrollbitmap_trans_common(_BitmapClass &dest, const _Bitm
for (s32 sx = xscroll - src.width(); sx < dest.width(); sx += src.width())
{
// compute the cliprect for this group
- subclip.min_x = col * colwidth + sx;
- subclip.max_x = (col + groupcols) * colwidth - 1 + sx;
+ subclip.setx(col * colwidth + sx, (col + groupcols) * colwidth - 1 + sx);
subclip &= cliprect;
// iterate over all portions of the scroll that overlap the destination
@@ -2051,8 +2050,7 @@ static inline void copyscrollbitmap_trans_common(_BitmapClass &dest, const _Bitm
for (s32 sy = yscroll - src.height(); sy < dest.height(); sy += src.height())
{
// compute the cliprect for this group
- subclip.min_y = row * rowheight + sy;
- subclip.max_y = (row + grouprows) * rowheight - 1 + sy;
+ subclip.sety(row * rowheight + sy, (row + grouprows) * rowheight - 1 + sy);
subclip &= cliprect;
// iterate over all portions of the scroll that overlap the destination