Switch to a switch statement
This commit is contained in:
@@ -914,18 +914,23 @@ wxCairoPenData::wxCairoPenData( wxGraphicsRenderer* renderer, const wxGraphicsPe
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.GetGradientType() == wxGRADIENT_LINEAR)
|
switch ( info.GetGradientType() )
|
||||||
{
|
{
|
||||||
CreateLinearGradientBrush(info.GetX1(), info.GetY1(),
|
case wxGRADIENT_NONE:
|
||||||
info.GetX2(), info.GetY2(),
|
break;
|
||||||
info.GetStops());
|
|
||||||
}
|
case wxGRADIENT_LINEAR:
|
||||||
if (info.GetGradientType() == wxGRADIENT_RADIAL)
|
CreateLinearGradientPattern(info.GetX1(), info.GetY1(),
|
||||||
{
|
info.GetX2(), info.GetY2(),
|
||||||
CreateRadialGradientBrush(info.GetXO(), info.GetYO(),
|
info.GetStops());
|
||||||
info.GetXC(), info.GetYC(),
|
break;
|
||||||
info.GetRadius(),
|
|
||||||
info.GetStops());
|
case wxGRADIENT_RADIAL:
|
||||||
|
CreateRadialGradientPattern(info.GetXO(), info.GetYO(),
|
||||||
|
info.GetXC(), info.GetYC(),
|
||||||
|
info.GetRadius(),
|
||||||
|
info.GetStops());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user