зеркало из https://github.com/mozilla/moz-skia.git
simplify macros, since we no longer support scalar == fixed
git-svn-id: http://skia.googlecode.com/svn/trunk@6372 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
80b577eba6
Коммит
20d44677a1
|
@ -46,19 +46,8 @@
|
|||
static const SkMScalar SK_MScalarPI = 3.14159265f;
|
||||
#endif
|
||||
|
||||
#ifdef SK_SCALAR_IS_FLOAT
|
||||
#define SkMScalarToScalar SkMScalarToFloat
|
||||
#define SkScalarToMScalar SkFloatToMScalar
|
||||
#else
|
||||
#if SK_MSCALAR_IS_DOUBLE
|
||||
// we don't have fixed <-> double macros, use double<->scalar macros
|
||||
#define SkMScalarToScalar SkDoubleToScalar
|
||||
#define SkScalarToMScalar SkScalarToDouble
|
||||
#else
|
||||
#define SkMScalarToScalar SkFloatToFixed
|
||||
#define SkScalarToMScalar SkFixedToFloat
|
||||
#endif
|
||||
#endif
|
||||
#define SkMScalarToScalar SkMScalarToFloat
|
||||
#define SkScalarToMScalar SkFloatToMScalar
|
||||
|
||||
static const SkMScalar SK_MScalar1 = 1;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче