pass double as sqrt() argument as at least Sun compiler has troubles with sqrt(2)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1302,7 +1302,7 @@ void wxGnomePrintDC::DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width,
|
|||||||
void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y,
|
void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y,
|
||||||
wxCoord width, wxCoord height)
|
wxCoord width, wxCoord height)
|
||||||
{
|
{
|
||||||
double r = 4 * (sqrt (2) - 1) / 3;
|
double r = 4 * (sqrt(2.) - 1) / 3;
|
||||||
double halfW = 0.5 * width,
|
double halfW = 0.5 * width,
|
||||||
halfH = 0.5 * height,
|
halfH = 0.5 * height,
|
||||||
halfWR = r * halfW,
|
halfWR = r * halfW,
|
||||||
|
Reference in New Issue
Block a user