diff options
author | 2016-08-25 14:35:00 +1000 | |
---|---|---|
committer | 2016-08-25 14:35:00 +1000 | |
commit | cfbb88272085e61a30ff03bcc4f23303d5484000 (patch) | |
tree | 4ebd4a04df4ad8a9bb16dfb109633df27096b86b /src/emu/render.cpp | |
parent | 3bf7ef43f76d3aa795e0786c64bdaa80ce807734 (diff) | |
parent | 717e1eb9d2f3d4399f1793773b3c48397c728b43 (diff) |
Merge pull request #1314 from ajrhacker/clang_warnings
Change warning flags for Clang build (nw)
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 51669bf5320..39018410c2b 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -1756,8 +1756,8 @@ void render_target::add_container_primitives(render_primitive_list &list, const cliprect.y1 = xform.yoffs + xform.yscale; sect_render_bounds(&cliprect, &m_bounds); - float root_xoffs = root_xform.xoffs + abs(root_xform.xscale - xform.xscale) * 0.5f; - float root_yoffs = root_xform.yoffs + abs(root_xform.yscale - xform.yscale) * 0.5f; + float root_xoffs = root_xform.xoffs + fabsf(root_xform.xscale - xform.xscale) * 0.5f; + float root_yoffs = root_xform.yoffs + fabsf(root_xform.yscale - xform.yscale) * 0.5f; render_bounds root_cliprect; root_cliprect.x0 = root_xoffs; |