diff options
author | Mathias Agopian <mathias@google.com> | 2011-03-31 20:59:58 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-03-31 20:59:58 -0700 |
commit | da5a4440f019074e7aa61c5531c5c61755adc44d (patch) | |
tree | acff4b9a3239978abe7033d56a182059d97e8725 /native/android/native_window.cpp | |
parent | 616fb9a38a5b558b1245b0e7f6dc0c4e5ef1a985 (diff) | |
download | frameworks_base-da5a4440f019074e7aa61c5531c5c61755adc44d.zip frameworks_base-da5a4440f019074e7aa61c5531c5c61755adc44d.tar.gz frameworks_base-da5a4440f019074e7aa61c5531c5c61755adc44d.tar.bz2 |
ANativeWindow_setBuffersGeometry now returns proper error codes
Change-Id: Iac59d513fa1d4a55b8378000714d344ef3e2e0a4
Diffstat (limited to 'native/android/native_window.cpp')
-rw-r--r-- | native/android/native_window.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/native/android/native_window.cpp b/native/android/native_window.cpp index ae1993d..8d42edb 100644 --- a/native/android/native_window.cpp +++ b/native/android/native_window.cpp @@ -68,8 +68,7 @@ int32_t ANativeWindow_getFormat(ANativeWindow* window) { int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format) { - native_window_set_buffers_geometry(window, width, height, format); - return 0; + return native_window_set_buffers_geometry(window, width, height, format); } int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, |