From 778d54daf6b6c87e3363e641ee7aba2afba887a6 Mon Sep 17 00:00:00 2001 From: Jezze Date: Wed, 28 Sep 2016 22:53:49 +0200 Subject: [PATCH] Fixed OSX build as suggested by ajrhacker * use fabsf rather than abs for float->float --- src/emu/render.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emu/render.h b/src/emu/render.h index d0f8a29b0c4..a3ce229e67f 100644 --- a/src/emu/render.h +++ b/src/emu/render.h @@ -345,10 +345,10 @@ public: // getters render_primitive *next() const { return m_next; } bool packable(const INT32 pack_size) const { return (flags & PRIMFLAG_PACKABLE) && texture.base != nullptr && texture.width <= pack_size && texture.height <= pack_size; } - float get_quad_width() const { return abs(bounds.x1 - bounds.x0); } - float get_quad_height() const { return abs(bounds.y1 - bounds.y0); } - float get_full_quad_width() const { return abs(full_bounds.x1 - full_bounds.x0); } - float get_full_quad_height() const { return abs(full_bounds.y1 - full_bounds.y0); } + float get_quad_width() const { return fabsf(bounds.x1 - bounds.x0); } + float get_quad_height() const { return fabsf(bounds.y1 - bounds.y0); } + float get_full_quad_width() const { return fabsf(full_bounds.x1 - full_bounds.x0); } + float get_full_quad_height() const { return fabsf(full_bounds.y1 - full_bounds.y0); } // reset to prepare for re-use void reset();