diff options
author | 2019-07-26 23:20:19 +1000 | |
---|---|---|
committer | 2019-07-26 23:20:19 +1000 | |
commit | 4da0cc0224d2e8f98d443f547c039050f1d70cfb (patch) | |
tree | 8e64adf1d1ebddb65ae5331a7761f064e4b9148f /src/emu/tilemap.cpp | |
parent | 38009c1cbbb61701f1a2f6cf981d87eddf144fcb (diff) |
tilemap: revert changes to the tile scroll computations. (#5400)
The original look good. A comment has been added to the source
to clarify the meaning of the 'width' and 'height' variables.
Diffstat (limited to 'src/emu/tilemap.cpp')
-rw-r--r-- | src/emu/tilemap.cpp | 7 |
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) |