summaryrefslogtreecommitdiffstats
path: root/src/emu/drawgfx.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-07-28 02:27:53 +1000
committer Vas Crabb <vas@vastheman.com>2018-07-28 02:27:53 +1000
commit29686200984dc74633183583e7391c6fa913b070 (patch)
treede9714f32cc0dae1eeca22e8cc160910d4dfe984 /src/emu/drawgfx.cpp
parentdbb034ad61477d9072c42ed83c8547d925085beb (diff)
make rectangle work better with constexpr, change many things to use designated getters/setters (nw)
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