diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-12 15:58:50 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-12 15:58:50 -0800 |
commit | a30b7e814a8bee2af6453009501614a24211e16f (patch) | |
tree | 4114b6b62cdd59afe43b92f52a9d7e527bf7e532 /xfa/include/fwl | |
parent | 45fe3c2eefd57b48d7307f9efe13d8019c96e489 (diff) | |
download | pdfium-a30b7e814a8bee2af6453009501614a24211e16f.tar.xz |
One less PI.
One less Bezier.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1692413002 .
Diffstat (limited to 'xfa/include/fwl')
-rw-r--r-- | xfa/include/fwl/theme/utils.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/xfa/include/fwl/theme/utils.h b/xfa/include/fwl/theme/utils.h index 4855feace1..bd9474351f 100644 --- a/xfa/include/fwl/theme/utils.h +++ b/xfa/include/fwl/theme/utils.h @@ -4,8 +4,11 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#ifndef _FWL_THEME_UTILS_H -#define _FWL_THEME_UTILS_H +#ifndef FWL_THEME_UTILS_H_ +#define FWL_THEME_UTILS_H_ + +#include "core/include/fxcrt/fx_system.h" + #define THEME_XPSimilar enum FWLTHEME_EDGE { FWLTHEME_EDGE_Flat = 0, @@ -43,10 +46,10 @@ typedef struct _FWLCOLOR { operator FX_DWORD() { return color; } } FWLCOLOR; -#define FWLTHEME_BEZIER 0.5522847498308f -#define FWLTHEME_PI 3.141592f -#define FWLTHEME_PI_2_1 1.570796f -#define FWLTHEME_PI_2_3 4.712388f +#define FWLTHEME_BEZIER FX_BEZIER +#define FWLTHEME_PI FX_PI +#define FWLTHEME_PI_2_1 (FX_PI / 2.0f) +#define FWLTHEME_PI_2_3 (3.0f * FX_PI / 2.0f) #define FWLTHEME_COLOR_EDGELT1 (ArgbEncode(255, 172, 168, 153)) #define FWLTHEME_COLOR_EDGELT2 (ArgbEncode(255, 113, 111, 100)) #define FWLTHEME_COLOR_EDGERB1 (ArgbEncode(255, 241, 239, 226)) |