From: Vadim Zeitlin Date: Wed, 15 Sep 1999 14:12:22 +0000 (+0000) Subject: patch for AIX compilation (Hans-Joachim Baader) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2e4f15693a02b70d4036ab9177672f0f5c1fce42 patch for AIX compilation (Hans-Joachim Baader) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 81bd578de4..1e91d4b048 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -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; } diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index 81bd578de4..1e91d4b048 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -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; }