Notify a Bitmap is has changed when calling copyPixelFromBuffer

Change-Id: Ibff1a162edfe11473c5c167e764405bf83ec5822
This commit is contained in:
Romain Guy
2011-10-18 17:56:06 -07:00
parent 138f6fa439
commit 2c183fa5bf

View File

@@ -579,6 +579,7 @@ static void Bitmap_copyPixelsFromBuffer(JNIEnv* env, jobject,
android::AutoBufferPointer abp(env, jbuffer, JNI_FALSE);
// the java side has already checked that buffer is large enough
memcpy(dst, abp.pointer(), bitmap->getSize());
bitmap->notifyPixelsChanged();
}
}