mirror of https://github.com/axmolengine/axmol.git
Refine jni param types
This commit is contained in:
parent
efb5442e7a
commit
1bd6f5680f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue