Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Feb 4, 2024
1 parent a93c129 commit 372a454
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vstgui/uidescription-scripting/detail/drawcontextobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float> (alphaVar ? alphaVar->getVar ()->getDouble () : 1.);
context->drawBitmap (bitmap, destRect, offset, alpha);
},
{"bitmap", "destRect"});
Expand Down

0 comments on commit 372a454

Please sign in to comment.