summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/info.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-12-30 15:44:57 -0500
committer AJR <ajrhacker@users.noreply.github.com>2021-12-30 15:47:16 -0500
commit4aca8e189096236b4d5586cf993882a5f2a30e66 (patch)
tree39f1849fc15d4b988a868119c07cfdcd3aac960e /src/frontend/mame/ui/info.cpp
parenta93426ab33a6b64289595ecdd250e42bcc6a59c5 (diff)
Render-related cleanup
- Undo inclusion of screen.h within render.h and update many source files that were stealth-including the former - Move texture_format enum to rendertypes.h - rendlay.h: Make a few methods static - ui/info.cpp: Use C++11-style iteration for render targets
Diffstat (limited to 'src/frontend/mame/ui/info.cpp')
-rw-r--r--src/frontend/mame/ui/info.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/info.cpp b/src/frontend/mame/ui/info.cpp
index d7ed21065fa..5d4b8c61cb2 100644
--- a/src/frontend/mame/ui/info.cpp
+++ b/src/frontend/mame/ui/info.cpp
@@ -15,9 +15,10 @@
#include "ui/ui.h"
#include "drivenum.h"
+#include "emuopts.h"
#include "romload.h"
+#include "screen.h"
#include "softlist.h"
-#include "emuopts.h"
#include <set>
#include <sstream>
@@ -234,8 +235,8 @@ machine_static_info::machine_static_info(const ui_options &options, machine_conf
// suppress "requires external artwork" warning when external artwork was loaded
if (config.root_device().has_running_machine())
{
- for (render_target *target = config.root_device().machine().render().first_target(); target != nullptr; target = target->next())
- if (!target->hidden() && target->external_artwork())
+ for (render_target const &target : config.root_device().machine().render().targets())
+ if (!target.hidden() && target.external_artwork())
{
m_flags &= ~::machine_flags::REQUIRES_ARTWORK;
break;