summaryrefslogtreecommitdiffhomepage
path: root/pose-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-19 11:11:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-19 11:12:04 +0200
commit84044ec3f6fe9ea90f3601b880d96be989fb7d79 (patch)
tree7b5b53cc0ace4b701a8f7a37289f7d8827e3d81f /pose-widget
parent64a6892e8713c69e1f5ade929ec8035146de3f56 (diff)
fix osx, app bundle now builds
Diffstat (limited to 'pose-widget')
-rw-r--r--pose-widget/glwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pose-widget/glwidget.cpp b/pose-widget/glwidget.cpp
index 66527a57..ed4560af 100644
--- a/pose-widget/glwidget.cpp
+++ b/pose-widget/glwidget.cpp
@@ -193,10 +193,10 @@ vec2 GLWidget::project(const vec3 &point)
double z = std::max(.75, 1. + translation.z()/-60.);
int w = width(), h = height();
double x = w * translation.x() / 2. / -40.;
- if (abs(x) > w/2)
+ if (std::abs(x) > w/2)
x = x > 0 ? w/2 : w/-2;
double y = h * translation.y() / 2. / -40.;
- if (abs(y) > h/2)
+ if (std::abs(y) > h/2)
y = y > 0 ? h/2 : h/-2;
return vec2 { z * (ret.x() + x), z * (ret.y() + y) };
}