]> git.saurik.com Git - wxWidgets.git/commitdiff
patch for AIX compilation (Hans-Joachim Baader)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Sep 1999 14:12:22 +0000 (14:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Sep 1999 14:12:22 +0000 (14:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcclient.cpp
src/gtk1/dcclient.cpp

index 81bd578de480784d8cff6d4f2905edbe0afd7125..1e91d4b0483896df9287a257070d7d5d75569243 100644 (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;
     }
   
index 81bd578de480784d8cff6d4f2905edbe0afd7125..1e91d4b0483896df9287a257070d7d5d75569243 100644 (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;
     }