From 7d5cdf62e4f2935425faab1270fe1c9a401fa664 Mon Sep 17 00:00:00 2001 From: Mike Schuchardt Date: Sat, 3 Aug 2024 14:37:42 -0700 Subject: cube: Change ALooper_pollOnce to ALooper_pollAll ALooper_pollAll is removed in NDK r27, switch to using ALooper_pollOnce instead. Since it was already being called in a loop, all we have to do is change the function name. Fixes #1015 --- cube/cube.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cube') diff --git a/cube/cube.c b/cube/cube.c index b965964e..5cb15dce 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -4505,7 +4505,7 @@ void android_main(struct android_app *app) { while (1) { int events; struct android_poll_source *source; - while (ALooper_pollAll(active ? 0 : -1, NULL, &events, (void **)&source) >= 0) { + while (ALooper_pollOnce(active ? 0 : -1, NULL, &events, (void **)&source) >= 0) { if (source) { source->process(app, source); } -- cgit v1.2.3