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.cpp4
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