diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/jni/android_view_Surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp index e5a31e5..ab0d38e 100644 --- a/core/jni/android_view_Surface.cpp +++ b/core/jni/android_view_Surface.cpp @@ -206,8 +206,8 @@ static jobject nativeLockCanvas(JNIEnv* env, jobject surfaceObj, jint nativeObje ANativeWindow_Buffer outBuffer; Rect dirtyBounds(dirtyRegion.getBounds()); status_t err = surface->lock(&outBuffer, &dirtyBounds); + dirtyRegion.set(dirtyBounds); if (err < 0) { - dirtyRegion.set(dirtyBounds); const char* const exception = (err == NO_MEMORY) ? OutOfResourcesException : "java/lang/IllegalArgumentException"; |