summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_posewidget/glwidget.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-17 01:18:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-17 03:16:11 +0200
commit4abd05ba1a4f45791d37dbf12ecdaa23d6b029ec (patch)
tree2fe0a308d286a31693c5f0734a671b46eed2d6e7 /ftnoir_posewidget/glwidget.cpp
parent916e32dd0b6c369d1e75c8339860ab443ef6ff32 (diff)
change bg color
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_posewidget/glwidget.cpp')
-rw-r--r--ftnoir_posewidget/glwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_posewidget/glwidget.cpp b/ftnoir_posewidget/glwidget.cpp
index 275953a7..71af8a08 100644
--- a/ftnoir_posewidget/glwidget.cpp
+++ b/ftnoir_posewidget/glwidget.cpp
@@ -140,7 +140,7 @@ void GLWidget::project_quad_texture() {
for (int i = 0; i < 4; i++)
p2[i] = Vec2f(pt[i].x, pt[i].y);
QImage texture(QSize(sx, sy), QImage::Format_RGB888);
- QColor bgColor = palette().color(QPalette::Normal, QPalette::Background);
+ QColor bgColor = palette().color(QPalette::Current, QPalette::Window);
texture.fill(bgColor);
const Vec2f projected[2][3] = { { p2[0], p2[1], p2[2] }, { p2[3], p2[1], p2[2] } };