aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/core/SkFimgApi3x.h14
-rw-r--r--src/core/SkFimgApi3x.cpp2
2 files changed, 8 insertions, 8 deletions
diff --git a/include/core/SkFimgApi3x.h b/include/core/SkFimgApi3x.h
index d8285d2..308e211 100644
--- a/include/core/SkFimgApi3x.h
+++ b/include/core/SkFimgApi3x.h
@@ -48,16 +48,16 @@
//---------------------------------------------------------------------------//
-#define FIMGAPI_G2D_BLOCKING TRUE
-#define FIMGAPI_FILTERMODE_USE_SW TRUE
-#define FIMGAPI_DITHERMODE_USE_SW TRUE
-#define FIMGAPI_COMPROMISE_USE TRUE
-#define FIMGAPI_HYBRID_USE FALSE
+#define FIMGAPI_G2D_BLOCKING true
+#define FIMGAPI_FILTERMODE_USE_SW true
+#define FIMGAPI_DITHERMODE_USE_SW true
+#define FIMGAPI_COMPROMISE_USE true
+#define FIMGAPI_HYBRID_USE false
#if defined(SWP1_CUSTOMSIMD_ENABLE)
-#define FIMGAPI_DMC_SIMD_OPT_USE TRUE
+#define FIMGAPI_DMC_SIMD_OPT_USE true
#else
-#define FIMGAPI_DMC_SIMD_OPT_USE FALSE
+#define FIMGAPI_DMC_SIMD_OPT_USE false
#endif
#define FIMGAPI_FINISHED (0x1<<0)
diff --git a/src/core/SkFimgApi3x.cpp b/src/core/SkFimgApi3x.cpp
index 5795371..bb8e121 100644
--- a/src/core/SkFimgApi3x.cpp
+++ b/src/core/SkFimgApi3x.cpp
@@ -143,7 +143,7 @@ bool FimgApiCheckPossible(Fimg *fimg)
return false;
#endif
- if (fimg->colorFilter != NULL)
+ if (fimg->colorFilter != 0)
return false;
if ((fimg->srcAddr == NULL) || (fimg->dstAddr == NULL))