projects
/
andemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
android builds now include both 64 and 32bit in the APK
[andemo]
/
src
/
android
/
main.c
diff --git
a/src/android/main.c
b/src/android/main.c
index
cf195f9
..
dd9a2cf
100644
(file)
--- a/
src/android/main.c
+++ b/
src/android/main.c
@@
-5,8
+5,9
@@
#include <sys/time.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include <sys/time.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
-#include "demo.h"
+#include <android/window.h>
#include "android_native_app_glue.h"
#include "android_native_app_glue.h"
+#include "demo.h"
#include "logger.h"
#include "demosys.h"
#include "logger.h"
#include "demosys.h"
@@
-82,6
+83,7
@@
static void handle_command(struct android_app *app, int32_t cmd)
break;
case APP_CMD_INIT_WINDOW:
break;
case APP_CMD_INIT_WINDOW:
+ ANativeActivity_setWindowFlags(app->activity, AWINDOW_FLAG_KEEP_SCREEN_ON, 0);
if(init_gl() == -1) {
exit(1);
}
if(init_gl() == -1) {
exit(1);
}