[vlmc-devel] EffectSettingValue: Fix some warnings.
Hugo Beauzée-Luyssen
git at videolan.org
Sun Sep 2 13:37:34 CEST 2012
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Sep 1 17:42:13 2012 +0300| [345d9b37c7509fc7bed92e314042b53e34695cc8] | committer: Hugo Beauzée-Luyssen
EffectSettingValue: Fix some warnings.
Use qreal type instead of float/double.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=345d9b37c7509fc7bed92e314042b53e34695cc8
---
src/EffectsEngine/EffectSettingValue.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/EffectsEngine/EffectSettingValue.cpp b/src/EffectsEngine/EffectSettingValue.cpp
index 265d795..c326299 100644
--- a/src/EffectsEngine/EffectSettingValue.cpp
+++ b/src/EffectsEngine/EffectSettingValue.cpp
@@ -79,14 +79,14 @@ EffectSettingValue::set( const QVariant &val )
case Color:
{
QColor color = val.value<QColor>();
- float rgb[3] = { color.redF(), color.greenF(), color.blueF() };
+ qreal rgb[3] = { color.redF(), color.greenF(), color.blueF() };
copyToFrei0rBuff( rgb, 3 * sizeof(float) );
break ;
}
case Position:
{
QPointF pos = val.value<QPointF>();
- double posD[2] = { pos.x(), pos.y() };
+ qreal posD[2] = { pos.x(), pos.y() };
copyToFrei0rBuff( posD, 2 * sizeof(double) );
break ;
}
More information about the Vlmc-devel
mailing list