patch for AIX compilation (Hans-Joachim Baader)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-09-15 14:12:22 +00:00
parent 0ce742cf09
commit 2e4f15693a
2 changed files with 2 additions and 2 deletions

View File

@ -874,7 +874,7 @@ void wxWindowDC::SetPen( const wxPen &pen )
{
// X doesn't allow different width in x and y and so we take
// the average
double w = 0.5 + (abs(XLOG2DEVREL(width)) + abs(YLOG2DEVREL(width))) / 2.0;
double w = 0.5 + (abs((double) XLOG2DEVREL(width)) + abs((double) YL2DEVREL(width))) / 2.0;
width = (int)w;
}

View File

@ -874,7 +874,7 @@ void wxWindowDC::SetPen( const wxPen &pen )
{
// X doesn't allow different width in x and y and so we take
// the average
double w = 0.5 + (abs(XLOG2DEVREL(width)) + abs(YLOG2DEVREL(width))) / 2.0;
double w = 0.5 + (abs((double) XLOG2DEVREL(width)) + abs((double) YL2DEVREL(width))) / 2.0;
width = (int)w;
}