Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: core/include/fxcrt/fx_system.h

Issue 1692413002: One less PI, one less Bezier. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: One less bezier, too. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | fpdfsdk/include/pdfwindow/PWL_Utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/include/fxcrt/fx_system.h
diff --git a/core/include/fxcrt/fx_system.h b/core/include/fxcrt/fx_system.h
index 2fbab98a1d17d1eadedcb103787d4d6bed897f81..544db6c82f1b3db73cd71580a75171b018478cf7 100644
--- a/core/include/fxcrt/fx_system.h
+++ b/core/include/fxcrt/fx_system.h
@@ -111,7 +111,10 @@ static_assert(FALSE == false, "false_needs_to_be_false");
#endif
#define FX_MIN(a, b) (((a) < (b)) ? (a) : (b))
+
+// M_PI not universally present on all platforms.
#define FX_PI 3.1415926535897932384626433832795f
+#define FX_BEZIER 0.5522847498308f
// NOTE: prevent use of the return value from snprintf() since some platforms
// have different return values (e.g. windows _vsnprintf()), and provide
« no previous file with comments | « no previous file | fpdfsdk/include/pdfwindow/PWL_Utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698