From 319f4e2793e691a7aeabad09e463ac09df562ed4 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 3 Aug 2011 11:26:38 -0700 Subject: [PATCH] fix a typo that prevented api_connect/api_disconnect to work also make the original connect/disconnect inlines be no-ops. Change-Id: Ic723e21455491c63ccbbcd01d3a47cd7ed788319 --- include/system/window.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/system/window.h b/include/system/window.h index 8ff464bee..959bd23f4 100644 --- a/include/system/window.h +++ b/include/system/window.h @@ -449,13 +449,13 @@ static inline int native_window_set_usage( /* deprecated. Always returns 0. Don't call. */ static inline int native_window_connect( struct ANativeWindow* window, int api) { - return window->perform(window, NATIVE_WINDOW_CONNECT, api); + return 0; } /* deprecated. Always returns 0. Don't call. */ static inline int native_window_disconnect( struct ANativeWindow* window, int api) { - return window->perform(window, NATIVE_WINDOW_DISCONNECT, api); + return 0; } /* @@ -593,7 +593,7 @@ static inline int native_window_set_scaling_mode( static inline int native_window_api_connect( struct ANativeWindow* window, int api) { - return window->perform(window, NATIVE_WINDOW_CONNECT, api); + return window->perform(window, NATIVE_WINDOW_API_CONNECT, api); } /* @@ -605,7 +605,7 @@ static inline int native_window_api_connect( static inline int native_window_api_disconnect( struct ANativeWindow* window, int api) { - return window->perform(window, NATIVE_WINDOW_DISCONNECT, api); + return window->perform(window, NATIVE_WINDOW_API_DISCONNECT, api); }