]> git.saurik.com Git - wxWidgets.git/commitdiff
getting rid of warnings
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 24 Aug 2002 16:20:21 +0000 (16:20 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 24 Aug 2002 16:20:21 +0000 (16:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/utils.cpp
src/mac/utils.cpp

index 9c4bc2c8ce500039cd28884b2d15452643e181f6..1d0252c810528312d92951151e21127f8bea160f 100644 (file)
@@ -466,10 +466,11 @@ void wxDisplaySize(int *width, int *height)
 
 void wxDisplaySizeMM(int *width, int *height)
 {
-   wxDisplaySize(width, height);
-   // on mac 72 is fixed (at least now ;-)
-   *width *= 25.4 / 72 ;
-   *height *= 25.4 / 72 ;
+    wxDisplaySize(width, height);
+    // on mac 72 is fixed (at least now ;-)
+    float cvPt2Mm = 25.4 / 72;
+    *width = int( *width * cvPt2Mm );
+    *height = int( *height * cvPt2Mm );
 }
 
 void wxClientDisplayRect(int *x, int *y, int *width, int *height)
index 9c4bc2c8ce500039cd28884b2d15452643e181f6..1d0252c810528312d92951151e21127f8bea160f 100644 (file)
@@ -466,10 +466,11 @@ void wxDisplaySize(int *width, int *height)
 
 void wxDisplaySizeMM(int *width, int *height)
 {
-   wxDisplaySize(width, height);
-   // on mac 72 is fixed (at least now ;-)
-   *width *= 25.4 / 72 ;
-   *height *= 25.4 / 72 ;
+    wxDisplaySize(width, height);
+    // on mac 72 is fixed (at least now ;-)
+    float cvPt2Mm = 25.4 / 72;
+    *width = int( *width * cvPt2Mm );
+    *height = int( *height * cvPt2Mm );
 }
 
 void wxClientDisplayRect(int *x, int *y, int *width, int *height)