diff options
author | Vas Crabb <vas@vastheman.com> | 2020-09-06 01:41:44 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2020-09-06 01:41:44 +1000 |
commit | 94601c77cc5b645a7738d634fb6e668dfd98d6db (patch) | |
tree | feaddeac4cbb07e66f29cd3fd08c508a2a10339a /src/osd/modules/render/d3d/d3dhlsl.cpp | |
parent | 080826aac441562e168fbd82eaa6bc27d2bd19a2 (diff) |
-util/xmlfile: Escape attribute and element content.
The previous behaviour was unintuitive - parsing an XML file and writing
it out immediately would produce invalid XML if the file contained any
characters that needed escaping. It makes far more sense to escape on
writing rather than expecting the user to escape input.
-Add preliminary support for visibility toggles to artwork system.
This allows the user to show/hide related elements in a view, with
nesting. The view can specify whether elements are shown or hidden by
default. Settings are saved per host window/screen per view. There is
no way to set the initial visibility state on the command line. Legacy
"Space Invaders cabinet model" layers are mapped onto visibility
toggles.
This is not stable yet. In particular, the XML element/attribute names
have not been finalised. The new features have not been added to
complay.py to prevent them from being used before they're finalised.
Diffstat (limited to 'src/osd/modules/render/d3d/d3dhlsl.cpp')
-rw-r--r-- | src/osd/modules/render/d3d/d3dhlsl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/render/d3d/d3dhlsl.cpp b/src/osd/modules/render/d3d/d3dhlsl.cpp index 9233aabc002..78e3e2f226f 100644 --- a/src/osd/modules/render/d3d/d3dhlsl.cpp +++ b/src/osd/modules/render/d3d/d3dhlsl.cpp @@ -2431,7 +2431,7 @@ void uniform::update() } case CU_SCREEN_COUNT: { - int screen_count = win->target()->current_view()->screen_count(); + int screen_count = win->target()->current_view().screen_count(); m_shader->set_int("ScreenCount", screen_count); break; } |