Index: core/fxcodec/codec/fx_codec_png.cpp |
diff --git a/core/fxcodec/codec/fx_codec_png.cpp b/core/fxcodec/codec/fx_codec_png.cpp |
index 8630887a706c05cf9de6a61638a93eb5b856e9aa..0b55a97dbeeb1998edd0575a7e1d5cc6a6b2a9f0 100644 |
--- a/core/fxcodec/codec/fx_codec_png.cpp |
+++ b/core/fxcodec/codec/fx_codec_png.cpp |
@@ -240,17 +240,17 @@ void CCodec_PngModule::Finish(FXPNG_Context* ctx) { |
} |
} |
-FX_BOOL CCodec_PngModule::Input(FXPNG_Context* ctx, |
- const uint8_t* src_buf, |
- uint32_t src_size, |
- CFX_DIBAttribute* pAttribute) { |
+bool CCodec_PngModule::Input(FXPNG_Context* ctx, |
+ const uint8_t* src_buf, |
+ uint32_t src_size, |
+ CFX_DIBAttribute* pAttribute) { |
if (setjmp(png_jmpbuf(ctx->png_ptr))) { |
if (pAttribute && |
0 == FXSYS_strcmp(m_szLastError, "Read Header Callback Error")) { |
_png_load_bmp_attribute(ctx->png_ptr, ctx->info_ptr, pAttribute); |
} |
- return FALSE; |
+ return false; |
} |
png_process_data(ctx->png_ptr, ctx->info_ptr, (uint8_t*)src_buf, src_size); |
- return TRUE; |
+ return true; |
} |