diff options
author | 2020-12-13 09:54:03 +1100 | |
---|---|---|
committer | 2020-12-13 09:54:03 +1100 | |
commit | 4d7ef2749083e5e3aaf41e5b2c6b03a93c237c47 (patch) | |
tree | 47076411b64212db0145e73f953325affa9d49dc /src/emu/render.cpp | |
parent | bc951bcfa9c9b4a54e40dc3ab5559531f820fafc (diff) |
-luaengine.cpp: Clean up render classes and expose screen image adjustments.
* Started moving Lua class reference to docs. Expecting people to find
the class reference material in the source isn’t going to help make it
approachable. The docs allow longer explanations, better formatting,
and cross reference links.
* Added another layout scripting example to the docs.
-goldnpkr.cpp: Minor clean-up.
* Improved the short names for Witch Card and Witch Game clone sets.
* Made Witch Up & Down artwork clickable.
* Added working Video Klein sets where the parent is a working Video
Klein set to the tiny subtarget.
* Removed history from the header comment - we have version control for
a readon.
Diffstat (limited to 'src/emu/render.cpp')
-rw-r--r-- | src/emu/render.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp index b2e278a59ea..26b7057ffb3 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -2634,10 +2634,8 @@ void render_target::config_load(util::xml::data_node const &targetnode) // apply the opposite orientation to the UI if (is_ui_target()) { - render_container::user_settings settings; render_container &ui_container = m_manager.ui_container(); - - ui_container.get_user_settings(settings); + render_container::user_settings settings = ui_container.get_user_settings(); settings.m_orientation = orientation_add(orientation_reverse(rotate), settings.m_orientation); ui_container.set_user_settings(settings); } @@ -3326,10 +3324,9 @@ void render_manager::config_load(config_type cfg_type, util::xml::data_node cons { int const index = screennode->get_attribute_int("index", -1); render_container *container = m_screen_container_list.find(index); - render_container::user_settings settings; // fetch current settings - container->get_user_settings(settings); + render_container::user_settings settings = container->get_user_settings(); // fetch color controls settings.m_brightness = screennode->get_attribute_float("brightness", settings.m_brightness); @@ -3395,8 +3392,7 @@ void render_manager::config_save(config_type cfg_type, util::xml::data_node *par // output the basics screennode->set_attribute_int("index", scrnum); - render_container::user_settings settings; - container->get_user_settings(settings); + render_container::user_settings settings = container->get_user_settings(); // output the color controls if (settings.m_brightness != machine().options().brightness()) |