From cb4015bb28dd7430efaaa523d04a155eb7e46305 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 14 Apr 2016 16:10:23 +0900 Subject: use atan2 from std instead of glm Some system glm libs don't (yet) have atan2 available and it is not really needed in this case anyway (as we don't use it for glm::vec2 for example) so just replace it with std::atan2. Change-Id: I5d417338ec167489f0252821650c64be454cca8a --- vcl/opengl/gdiimpl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 8b8046f7a5fa..b8d6fb6d9c73 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -39,7 +39,6 @@ #include #include -#include #include @@ -869,7 +868,7 @@ void OpenGLSalGraphicsImpl::DrawPolyLine(const basegfx::B2DPolygon& rPolygon, fl if (eLineJoin == basegfx::B2DLineJoin::Miter) { - float angle = glm::atan2(previousLineVector.x * nextLineVector.y - previousLineVector.y * nextLineVector.x, + float angle = std::atan2(previousLineVector.x * nextLineVector.y - previousLineVector.y * nextLineVector.x, previousLineVector.x * nextLineVector.x + previousLineVector.y * nextLineVector.y); angle = (F_PI - std::fabs(angle)) / F_PI180; -- cgit