diff --git a/cocos/platform/android/CCDevice-android.cpp b/cocos/platform/android/CCDevice-android.cpp index 01b3bcf8f5..46a068b3f5 100644 --- a/cocos/platform/android/CCDevice-android.cpp +++ b/cocos/platform/android/CCDevice-android.cpp @@ -186,7 +186,7 @@ extern "C" /** * this method is called by java code to init width, height and pixels data */ - JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxBitmap_nativeInitBitmapDC(JNIEnv* env, jclass, int width, int height, jbyteArray pixels) + JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxBitmap_nativeInitBitmapDC(JNIEnv* env, jclass, jint width, jint height, jbyteArray pixels) { int size = width * height * 4; cocos2d::BitmapDC& bitmapDC = cocos2d::sharedBitmapDC();