Commit 345d9b37 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectSettingValue: Fix some warnings.

Use qreal type instead of float/double.
parent 2d9c9988
......@@ -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 ;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment