diff --git a/cocos/base/etc2.cpp b/cocos/base/etc2.cpp index 39f8cb5f1f..5974e494f2 100644 --- a/cocos/base/etc2.cpp +++ b/cocos/base/etc2.cpp @@ -980,7 +980,7 @@ namespace { size_t outputDepthPitch); } -int etc2_decode_image(int format, const etc2_byte* input, etc2_byte* output, size_t width, size_t height) +int etc2_decode_image(int format, const etc2_byte* input, etc2_byte* output, etc2_uint32 width, etc2_uint32 height) { size_t outputRowPitch = 4 * width; size_t outputDepthPitch = outputRowPitch * height; diff --git a/cocos/base/etc2.h b/cocos/base/etc2.h index 1f8aab5c52..e5af9cf421 100644 --- a/cocos/base/etc2.h +++ b/cocos/base/etc2.h @@ -73,7 +73,7 @@ extern "C" { /// pixelsHeight /// pixelsWidth /// 0: success, -1: failed - int etc2_decode_image(int format, const etc2_byte* input, etc2_byte* output, size_t width, size_t height); + int etc2_decode_image(int format, const etc2_byte* input, etc2_byte* output, etc2_uint32 width, etc2_uint32 height); #if defined(__cplusplus) }