diff options
author | 2017-02-18 15:22:25 +0100 | |
---|---|---|
committer | 2017-02-18 15:22:25 +0100 | |
commit | 4091898097df5ee2ba2aeb312d6183b3f9372772 (patch) | |
tree | 0eff8ccc57b626b6e779432e028c291c8429ae04 /src/emu/tilemap.cpp | |
parent | 845b29260255a1fdd5f01544d3d3a4e6155aa05a (diff) |
UI: Add the ability to select different tilemap categories
This allows you to select different tilemap categories in the
built-in tilemap viewer. The default is to render all categories
(same as before), but you can select to render only a specific
tilemap category with the PAGE_UP and PAGE_DOWN keys.
Diffstat (limited to 'src/emu/tilemap.cpp')
-rw-r--r-- | src/emu/tilemap.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/emu/tilemap.cpp b/src/emu/tilemap.cpp index 13531985467..0a163cd7594 100644 --- a/src/emu/tilemap.cpp +++ b/src/emu/tilemap.cpp @@ -1456,12 +1456,16 @@ void tilemap_t::draw_roz_core(screen_device &screen, _BitmapClass &destbitmap, c // rowscroll and with fixed parameters //------------------------------------------------- -void tilemap_t::draw_debug(screen_device &screen, bitmap_rgb32 &dest, u32 scrollx, u32 scrolly) +void tilemap_t::draw_debug(screen_device &screen, bitmap_rgb32 &dest, u32 scrollx, u32 scrolly, u32 flags) { // set up for the blit, using hard-coded parameters (no priority, etc) blit_parameters blit; bitmap_ind8 dummy_priority; - configure_blit_parameters(blit, dummy_priority, dest.cliprect(), TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES, 0, 0xff); + + // draw everything + flags |= TILEMAP_DRAW_OPAQUE; + + configure_blit_parameters(blit, dummy_priority, dest.cliprect(), flags, 0, 0xff); // compute the effective scroll positions scrollx = m_width - scrollx % m_width; |