diff options
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 |
commit | 4aca8e189096236b4d5586cf993882a5f2a30e66 (patch) | |
tree | 39f1849fc15d4b988a868119c07cfdcd3aac960e /src/frontend/mame/ui | |
parent | a93426ab33a6b64289595ecdd250e42bcc6a59c5 (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')
-rw-r--r-- | src/frontend/mame/ui/devopt.cpp | 1 | ||||
-rw-r--r-- | src/frontend/mame/ui/info.cpp | 7 | ||||
-rw-r--r-- | src/frontend/mame/ui/ui.cpp | 1 | ||||
-rw-r--r-- | src/frontend/mame/ui/viewgfx.cpp | 1 |
4 files changed, 7 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/devopt.cpp b/src/frontend/mame/ui/devopt.cpp index c9e0fee1833..0f20c35486f 100644 --- a/src/frontend/mame/ui/devopt.cpp +++ b/src/frontend/mame/ui/devopt.cpp @@ -13,6 +13,7 @@ #include "ui/ui.h" #include "romload.h" +#include "screen.h" namespace ui { 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; diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index f5978f9c1ea..c9dae332ea6 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -38,6 +38,7 @@ #include "cheat.h" #include "rendfont.h" #include "romload.h" +#include "screen.h" #include "uiinput.h" #include "../osd/modules/lib/osdobj_common.h" diff --git a/src/frontend/mame/ui/viewgfx.cpp b/src/frontend/mame/ui/viewgfx.cpp index b10a62aee13..8c51413607a 100644 --- a/src/frontend/mame/ui/viewgfx.cpp +++ b/src/frontend/mame/ui/viewgfx.cpp @@ -16,6 +16,7 @@ #include "render.h" #include "rendfont.h" #include "rendutil.h" +#include "screen.h" #include "tilemap.h" #include "uiinput.h" |