diff options
| author | Mathias Agopian <mathias@google.com> | 2010-02-12 14:04:35 -0800 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2010-02-12 14:04:35 -0800 |
| commit | 128ce4b24ad0ee2c2ed56af9a0d800d7dc6111c0 (patch) | |
| tree | f777da7ff4020a608a97e071a4bada2917cd8ec8 /libs/rs/rsContext.cpp | |
| parent | 5cbb940cf6b1fd2b44d66bc40e5c3e8429bbd741 (diff) | |
| download | frameworks_base-128ce4b24ad0ee2c2ed56af9a0d800d7dc6111c0.zip frameworks_base-128ce4b24ad0ee2c2ed56af9a0d800d7dc6111c0.tar.gz frameworks_base-128ce4b24ad0ee2c2ed56af9a0d800d7dc6111c0.tar.bz2 | |
real fix for [2440014] launcher2 crashing in loop during boot
Surface* cannot be casted to void* and then to android_native_window_t*
Diffstat (limited to 'libs/rs/rsContext.cpp')
| -rw-r--r-- | libs/rs/rsContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index e94aece..dec993a 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -857,9 +857,9 @@ void rsi_ContextResume(Context *rsc) rsc->resume(); } -void rsi_ContextSetSurface(Context *rsc, uint32_t w, uint32_t h, void *sur) +void rsi_ContextSetSurface(Context *rsc, uint32_t w, uint32_t h, android_native_window_t *sur) { - rsc->setSurface(w, h, (android_native_window_t *)sur); + rsc->setSurface(w, h, sur); } void rsi_ContextSetPriority(Context *rsc, int32_t p) |
