Line 0
Link Here
|
|
|
1 |
--- kwin/scene_xrender.cpp.orig 2017-01-11 16:04:04 UTC |
2 |
+++ kwin/scene_xrender.cpp |
3 |
@@ -392,7 +392,7 @@ void SceneXrender::Window::performPaint( |
4 |
{ |
5 |
setTransformedShape(QRegion()); // maybe nothing will be painted |
6 |
// check if there is something to paint |
7 |
- bool opaque = isOpaque() && qFuzzyCompare(data.opacity(), 1.0); |
8 |
+ bool opaque = isOpaque() && qFuzzyCompare(data.opacity(), qreal(1.0)); |
9 |
/* HACK: It seems this causes painting glitches, disable temporarily |
10 |
if (( mask & PAINT_WINDOW_OPAQUE ) ^ ( mask & PAINT_WINDOW_TRANSLUCENT )) |
11 |
{ // We are only painting either opaque OR translucent windows, not both |
12 |
@@ -469,7 +469,7 @@ void SceneXrender::Window::performPaint( |
13 |
xscale *= screen_paint.xScale(); |
14 |
yscale *= screen_paint.yScale(); |
15 |
} |
16 |
- if (!qFuzzyCompare(xscale, 1.0) || !qFuzzyCompare(yscale, 1.0)) { |
17 |
+ if (!qFuzzyCompare(xscale, qreal(1.0)) || !qFuzzyCompare(yscale, qreal(1.0))) { |
18 |
scaled = true; |
19 |
xform.matrix11 = DOUBLE_TO_FIXED(1.0 / xscale); |
20 |
xform.matrix22 = DOUBLE_TO_FIXED(1.0 / yscale); |