summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
author 68bit <info@68bit.org>2019-07-25 23:12:30 +1000
committer 68bit <info@68bit.org>2019-07-25 23:35:51 +1000
commitc625775ac4fbdf1b966c6bf6a4a838c60775eade (patch)
treedd55891bbf63cbe7f1df0c6f043a3283ede8f9e1 /src
parentdb0110d12b4f86469cef97753d73597061d2872b (diff)
tilemap - fix calculation of visible area height and width.
Diffstat (limited to 'src')
-rw-r--r--src/emu/tilemap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/tilemap.cpp b/src/emu/tilemap.cpp
index c5c0ff16ad3..68653d8915a 100644
--- a/src/emu/tilemap.cpp
+++ b/src/emu/tilemap.cpp
@@ -953,8 +953,8 @@ g_profiler.start(PROFILER_TILEMAP_DRAW);
// flip the tilemap around the center of the visible area
rectangle visarea = screen.visible_area();
- u32 width = visarea.left() + visarea.right() + 1;
- u32 height = visarea.top() + visarea.bottom() + 1;
+ u32 width = visarea.right() - visarea.left() + 1;
+ u32 height = visarea.bottom() - visarea.top() + 1;
// XY scrolling playfield
if (m_scrollrows == 1 && m_scrollcols == 1)