diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-10-11 07:01:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-10-11 07:01:13 +0200 |
commit | 0db04664d5ee0b054724334ed21ce6239c888c60 (patch) | |
tree | 522636598305c8a8d50ac68011dd924be68d43d3 /pose-widget | |
parent | 692de4664b1aea87e634c541c00d77cb3f42006a (diff) |
pose-widget: make octopus more slim
It looked weird as such a fatso forgotso.
Diffstat (limited to 'pose-widget')
-rw-r--r-- | pose-widget/glwidget.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pose-widget/glwidget.cpp b/pose-widget/glwidget.cpp index 8e7784ed..7f24fa7a 100644 --- a/pose-widget/glwidget.cpp +++ b/pose-widget/glwidget.cpp @@ -139,12 +139,14 @@ void GLWidget::project_quad_texture() const int sx_ = (sx - std::max(0, (sx - sy)/2)) * 5/9; const int sy_ = (sy - std::max(0, (sy - sx)/2)) * 5/9; + static constexpr const double c = 85/100.; + const vec3 dst_corners[] = { - vec3(-sx_/2., -sy_/2, 0), - vec3(sx_/2, -sy_/2, 0), - vec3(-sx_/2, sy_/2, 0), - vec3(sx_/2, sy_/2, 0.) + vec3(-sx_/2. * c, -sy_/2, 0), + vec3(sx_/2 * c, -sy_/2, 0), + vec3(-sx_/2 * c, sy_/2, 0), + vec3(sx_/2 * c, sy_/2, 0.) }; for (int i = 0; i < 4; i++) |