summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_posewidget
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_posewidget')
-rw-r--r--ftnoir_posewidget/glwidget.cpp8
-rw-r--r--ftnoir_posewidget/images/side1.pngbin9018 -> 26449 bytes
-rw-r--r--ftnoir_posewidget/images/side6.pngbin4768 -> 26493 bytes
3 files changed, 4 insertions, 4 deletions
diff --git a/ftnoir_posewidget/glwidget.cpp b/ftnoir_posewidget/glwidget.cpp
index 93c98c9c..70667f06 100644
--- a/ftnoir_posewidget/glwidget.cpp
+++ b/ftnoir_posewidget/glwidget.cpp
@@ -181,10 +181,10 @@ void GLWidget::project_quad_texture() {
double qy = origs[i][0].y
+ coords.x * (origs[i][2].y - origs[i][0].y)
+ coords.y * (origs[i][1].y - origs[i][0].y);
- int qx1 = std::min<int>(ow - 1, std::max<int>(0, qx - 0.5));
- int qy1 = std::min<int>(oh - 1, std::max<int>(0, qy - 0.5));
- int qx2 = std::min<int>(ow - 1, std::max<int>(0, qx + 0.5));
- int qy2 = std::min<int>(oh - 1, std::max<int>(0, qy + 0.5));
+ int qx1 = std::min<int>(ow - 1, std::max<int>(0, qx));
+ int qy1 = std::min<int>(oh - 1, std::max<int>(0, qy));
+ int qx2 = std::min<int>(ow - 1, std::max<int>(0, qx + 1.0));
+ int qy2 = std::min<int>(oh - 1, std::max<int>(0, qy + 1.0));
double dx1 = qx1 - qx;
double dy1 = qy1 - qy;
diff --git a/ftnoir_posewidget/images/side1.png b/ftnoir_posewidget/images/side1.png
index e0315b77..d7467943 100644
--- a/ftnoir_posewidget/images/side1.png
+++ b/ftnoir_posewidget/images/side1.png
Binary files differ
diff --git a/ftnoir_posewidget/images/side6.png b/ftnoir_posewidget/images/side6.png
index f4160001..eaa80d7e 100644
--- a/ftnoir_posewidget/images/side6.png
+++ b/ftnoir_posewidget/images/side6.png
Binary files differ