diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-29 17:23:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-29 17:23:47 +0200 |
commit | c93fad49b80eb2f738dabf0b899b281d034275d1 (patch) | |
tree | d9cac46b9ab83af2e806c07323cfb944b8ad42bd | |
parent | fd3a1fc78a7e0ebd178ea0567ca8eec0d25ac53f (diff) |
Clear visual artifacts from the pose widget
-rw-r--r-- | ftnoir_posewidget/glwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_posewidget/glwidget.cpp b/ftnoir_posewidget/glwidget.cpp index 8f429df7..ee70a3ac 100644 --- a/ftnoir_posewidget/glwidget.cpp +++ b/ftnoir_posewidget/glwidget.cpp @@ -26,7 +26,7 @@ void GLWidget::paintEvent ( QPaintEvent * event ) { QWidget::paintEvent(event);
QPainter p(this);
project_quad_texture();
- p.drawPixmap(event->rect(), pixmap);
+ p.drawPixmap(event->rect(), pixmap, event->rect());
}
void GLWidget::rotateBy(double xAngle, double yAngle, double zAngle)
@@ -103,7 +103,7 @@ static __inline Vec3f cross(const Vec3f& p1, const Vec3f& p2) }
void GLWidget::project_quad_texture() {
- const int sx = 90, sy = 90;
+ const int sx = width(), sy = height();
Point pt[4];
static Vec3f corners[] = {
Vec3f(0, 0, 0),
|