]> git.saurik.com Git - wxWidgets.git/commitdiff
use a marginally more precise but, more importantly, easier to understand, value...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Apr 2007 16:25:57 +0000 (16:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Apr 2007 16:25:57 +0000 (16:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/math.h

index 12443b630cfd0cd54f0e0b6b24ce32342f1e47c8..9d03f185d1bd6add4e3e9121e16016329e77c39c 100644 (file)
@@ -22,9 +22,9 @@
     #define M_PI 3.1415926535897932384626433832795
 #endif
 
-/* Scaling factors for various unit conversions */
+/* Scaling factors for various unit conversions: 1 inch = 2.54 cm */
 #ifndef METRIC_CONVERSION_CONSTANT
-    #define METRIC_CONVERSION_CONSTANT 0.0393700787
+    #define METRIC_CONVERSION_CONSTANT (1./254)
 #endif
 
 #ifndef mm2inches