Merge pull request #5393 from 68bit/68bit-tilemap-visible-fix

tilemap - fix calculation of visible area height and width.
This commit is contained in:
R. Belmont 2019-07-25 14:30:37 -04:00 committed by GitHub
commit 7b2eef93c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)