mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 19:21:27 +00:00
[ANDROID] don't dim screen or show status bar when emulator is playing
This commit is contained in:
parent
67fb8485c6
commit
61b42c82e2
@ -25,6 +25,7 @@
|
||||
#include <android/configuration.h>
|
||||
#include <android/looper.h>
|
||||
#include <android/native_activity.h>
|
||||
#include <android/window.h>
|
||||
|
||||
struct android_app
|
||||
{
|
||||
|
@ -597,6 +597,9 @@ void ANativeActivity_onCreate(ANativeActivity* activity,
|
||||
activity->callbacks->onInputQueueCreated = onInputQueueCreated;
|
||||
activity->callbacks->onInputQueueDestroyed = onInputQueueDestroyed;
|
||||
|
||||
// these are set only for the native activity, and are reset when it ends
|
||||
ANativeActivity_setWindowFlags(activity, AWINDOW_FLAG_KEEP_SCREEN_ON | AWINDOW_FLAG_FULLSCREEN, 0);
|
||||
|
||||
struct android_app* android_app = (struct android_app*)malloc(sizeof(struct android_app));
|
||||
memset(android_app, 0, sizeof(struct android_app));
|
||||
android_app->activity = activity;
|
||||
|
Loading…
x
Reference in New Issue
Block a user