summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Jezze <jezze@gmx.net>2016-09-28 22:53:49 +0200
committer Jezze <jezze@gmx.net>2016-09-28 22:53:49 +0200
commit778d54daf6b6c87e3363e641ee7aba2afba887a6 (patch)
treef0fa5dff0db56d5c6c3281fae4859dfde4251947
parent449ef17cc3fe12bd6eaab6d189132eea0010593f (diff)
Fixed OSX build as suggested by ajrhacker
* use fabsf rather than abs for float->float
-rw-r--r--src/emu/render.h8
1 files 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();