diff options
author | 2018-09-20 00:02:31 +1000 | |
---|---|---|
committer | 2018-09-20 00:02:31 +1000 | |
commit | 701471600388c41746a70f1a39c30eb2fd373339 (patch) | |
tree | c2fc66d84b4bedde60403e5656e4f527406b4e5e /src/emu/render.cpp | |
parent | 556ba59efc26b8a198094af2f56fdc8fb5c6e6bb (diff) |
(nw) hey GLIBC maintainers - how about you use reserved _NAMES like you're supposed to for your macros, and stop #defining random words? it makes writing portable code hard.
Diffstat (limited to 'src/emu/render.cpp')
-rw-r--r-- | src/emu/render.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp index d6828cce124..ab26abaf154 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -1941,7 +1941,7 @@ void render_target::load_additional_layout_files(const char *basename, bool have { float const height0(float(screens[0].physical_y()) / screens[0].physical_x()); float const height1(float(screens[1].physical_y()) / screens[1].physical_x()); - float const minor((std::max)((std::min)(height0, 1.0F), (std::min)(height1, 1.0F))); + float const minor_dim((std::max)((std::min)(height0, 1.0F), (std::min)(height1, 1.0F))); util::xml::data_node *const viewnode(layoutnode->add_child("view", nullptr)); if (!viewnode) @@ -1956,7 +1956,7 @@ void render_target::load_additional_layout_files(const char *basename, bool have if (!mirrorbounds) throw emu_fatalerror("Couldn't create XML node??"); mirrorbounds->set_attribute_int("x", 0); - mirrorbounds->set_attribute_float("y", (-0.01 * minor) - height1); + mirrorbounds->set_attribute_float("y", (-0.01 * minor_dim) - height1); mirrorbounds->set_attribute_int("width", 1); mirrorbounds->set_attribute_float("height", height1); util::xml::data_node *const flipper(mirrornode->add_child("orientation", nullptr)); |