summaryrefslogtreecommitdiff
path: root/examples/ThirdPartyLibs/Gwen/BaseRender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ThirdPartyLibs/Gwen/BaseRender.cpp')
-rw-r--r--examples/ThirdPartyLibs/Gwen/BaseRender.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/ThirdPartyLibs/Gwen/BaseRender.cpp b/examples/ThirdPartyLibs/Gwen/BaseRender.cpp
index 36473fa1e..570bad016 100644
--- a/examples/ThirdPartyLibs/Gwen/BaseRender.cpp
+++ b/examples/ThirdPartyLibs/Gwen/BaseRender.cpp
@@ -11,6 +11,8 @@
#include <math.h>
+#include <cmath>
+
namespace Gwen
{
namespace Renderer
@@ -87,16 +89,16 @@ void Base::Translate(int& x, int& y)
x += m_RenderOffset.x;
y += m_RenderOffset.y;
- x = ceil(((float)x) * m_fScale);
- y = ceil(((float)y) * m_fScale);
+ x = std::ceil(((float)x) * m_fScale);
+ y = std::ceil(((float)y) * m_fScale);
}
void Base::Translate(Gwen::Rect& rect)
{
Translate(rect.x, rect.y);
- rect.w = ceil(((float)rect.w) * m_fScale);
- rect.h = ceil(((float)rect.h) * m_fScale);
+ rect.w = std::ceil(((float)rect.w) * m_fScale);
+ rect.h = std::ceil(((float)rect.h) * m_fScale);
}
void Gwen::Renderer::Base::SetClipRegion(Gwen::Rect rect)
@@ -214,4 +216,4 @@ Gwen::Point Base::MeasureText(Gwen::Font* pFont, const Gwen::UnicodeString& text
return p;
}
} // namespace Renderer
-} // namespace Gwen \ No newline at end of file
+} // namespace Gwen