summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/tilemap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/tilemap.cpp')
-rw-r--r--src/emu/tilemap.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emu/tilemap.cpp b/src/emu/tilemap.cpp
index 68653d8915a..903ab980bcf 100644
--- a/src/emu/tilemap.cpp
+++ b/src/emu/tilemap.cpp
@@ -953,8 +953,11 @@ g_profiler.start(PROFILER_TILEMAP_DRAW);
// flip the tilemap around the center of the visible area
rectangle visarea = screen.visible_area();
- u32 width = visarea.right() - visarea.left() + 1;
- u32 height = visarea.bottom() - visarea.top() + 1;
+ // These are not the width and height, rather 2 * left + width + 1,
+ // and 2 * top + height + 1, and these are inputs to the
+ // effective_*scroll functions used in the case of a flip.
+ u32 width = visarea.right() + visarea.left() + 1;
+ u32 height = visarea.bottom() + visarea.top() + 1;
// XY scrolling playfield
if (m_scrollrows == 1 && m_scrollcols == 1)