diff --git a/vstgui/uidescription-scripting/detail/drawcontextobject.cpp b/vstgui/uidescription-scripting/detail/drawcontextobject.cpp index d6d8b72ce..bd4f51c89 100644 --- a/vstgui/uidescription-scripting/detail/drawcontextobject.cpp +++ b/vstgui/uidescription-scripting/detail/drawcontextobject.cpp @@ -167,7 +167,8 @@ DrawContextObject::DrawContextObject () auto destRect = fromScriptRect (*destRectVar); auto offset = offsetPointVar ? fromScriptPoint (*offsetPointVar->getVar ()) : CPoint (0, 0); - auto alpha = alphaVar ? alphaVar->getVar ()->getDouble () : 1.f; + auto alpha = + static_cast (alphaVar ? alphaVar->getVar ()->getDouble () : 1.); context->drawBitmap (bitmap, destRect, offset, alpha); }, {"bitmap", "destRect"});