diff options
author | 2025-01-06 15:26:35 +0100 | |
---|---|---|
committer | 2025-01-06 15:26:45 +0100 | |
commit | 99b228771c16aa09b0592ed6b0cff415ac4494f6 (patch) | |
tree | e545ee52493bb099ec28bed4a87db53db114555c /src/emu/tilemap.cpp | |
parent | 70d4472da69c747a4e23ab5cf2b09d1c0e7f8f34 (diff) |
tilemap: account for flipped tilemap in get_info_debug,
diablo: update notes
Diffstat (limited to 'src/emu/tilemap.cpp')
-rw-r--r-- | src/emu/tilemap.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/tilemap.cpp b/src/emu/tilemap.cpp index 1aa18eef168..8c4e20e158f 100644 --- a/src/emu/tilemap.cpp +++ b/src/emu/tilemap.cpp @@ -1556,6 +1556,10 @@ void tilemap_t::draw_debug(screen_device &screen, bitmap_rgb32 &dest, u32 scroll void tilemap_t::get_info_debug(u32 col, u32 row, u8 &gfxnum, u32 &code, u32 &color) { // first map to the memory index + if (m_attributes & TILEMAP_FLIPX) + col = (m_cols - 1) - col; + if (m_attributes & TILEMAP_FLIPY) + row = (m_rows - 1) - row; tilemap_memory_index memindex = memory_index(col, row); // next invoke the get info callback |