summaryrefslogtreecommitdiffstats
path: root/src/emu/render.h
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2014-07-30 14:24:38 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2014-07-30 14:24:38 +0000
commit6875012f329f5b1081c95cca8b1cea6e747302c5 (patch)
treeb00adc4ad2d066d915ad65f1592319f5547b6794 /src/emu/render.h
parenteb570b4839a5a38967cf15500ddabb0da2ccc7ea (diff)
render_screen_list::contains - instead of false/true, return number of same indices found in view
Diffstat (limited to 'src/emu/render.h')
-rw-r--r--src/emu/render.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/emu/render.h b/src/emu/render.h
index 381781f2ab9..2e5443bcd58 100644
--- a/src/emu/render.h
+++ b/src/emu/render.h
@@ -253,11 +253,12 @@ public:
void reset() { m_list.reset(); }
// query
- bool contains(screen_device &screen) const
+ int contains(screen_device &screen) const
{
+ int count = 0;
for (item *curitem = m_list.first(); curitem != NULL; curitem = curitem->m_next)
- if (&curitem->m_screen == &screen) return true;
- return false;
+ if (&curitem->m_screen == &screen) count++;
+ return count;
}
private: