Refine jni param types

This commit is contained in:
halx99 2020-11-18 18:19:14 +08:00
parent efb5442e7a
commit 1bd6f5680f
1 changed files with 1 additions and 1 deletions

View File

@ -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();