From 0db04664d5ee0b054724334ed21ce6239c888c60 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 11 Oct 2016 07:01:13 +0200 Subject: pose-widget: make octopus more slim It looked weird as such a fatso forgotso. --- pose-widget/glwidget.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'pose-widget') 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++) -- cgit v1.2.3