[Marble-commits] KDE/kdeedu/marble/src/lib/blendings

Dennis Nienhüser earthwings at gentoo.org
Sat Apr 10 12:19:53 CEST 2010


SVN commit 1113282 by nienhueser:

Fix armel compilation.

 M  +4 -4      BlendingAlgorithms.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/blendings/BlendingAlgorithms.cpp #1113281:1113282
@@ -148,7 +148,7 @@
 qreal SubtractiveBlending::blendChannel( qreal const bottomColorIntensity,
                                          qreal const topColorIntensity ) const
 {
-    return qMax( bottomColorIntensity - topColorIntensity, 0.0 );
+    return qMax( bottomColorIntensity - topColorIntensity, qreal(0.0) );
 }
 
 
@@ -157,7 +157,7 @@
 qreal AdditiveBlending::blendChannel( qreal const bottomColorIntensity,
                                       qreal const topColorIntensity ) const
 {
-    return qMin( topColorIntensity + bottomColorIntensity, 1.0 );
+    return qMin( topColorIntensity + bottomColorIntensity, qreal(1.0) );
 }
 
 qreal ColorDodgeBlending::blendChannel( qreal const bottomColorIntensity,
@@ -196,8 +196,8 @@
 qreal PinLightBlending::blendChannel( qreal const bottomColorIntensity,
                                       qreal const topColorIntensity ) const
 {
-    return qMax( 0.0, qMax( 2.0 + topColorIntensity - 1.0,
-                            qMin( bottomColorIntensity, 2.0 * topColorIntensity )));
+    return qMax( qreal(0.0), qMax( qreal(2.0 + topColorIntensity - 1.0),
+                             qMin( bottomColorIntensity, qreal(2.0 * topColorIntensity ))));
 }
 
 qreal ScreenBlending::blendChannel( qreal const bottomColorIntensity,


More information about the Marble-commits mailing list