mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
[Android] Keep the screen turned on and bright
This commit is contained in:
parent
f0345d5201
commit
b542785ed9
@ -417,6 +417,10 @@ void ANativeActivity_onCreate(ANativeActivity* activity, void* savedState, size_
|
|||||||
// Share this activity with the callback functions
|
// Share this activity with the callback functions
|
||||||
states->activity = activity;
|
states->activity = activity;
|
||||||
|
|
||||||
|
// Keep the screen turned on and bright
|
||||||
|
ANativeActivity_setWindowFlags(activity, AWINDOW_FLAG_KEEP_SCREEN_ON,
|
||||||
|
AWINDOW_FLAG_KEEP_SCREEN_ON);
|
||||||
|
|
||||||
// Hide the status bar
|
// Hide the status bar
|
||||||
ANativeActivity_setWindowFlags(activity, AWINDOW_FLAG_FULLSCREEN,
|
ANativeActivity_setWindowFlags(activity, AWINDOW_FLAG_FULLSCREEN,
|
||||||
AWINDOW_FLAG_FULLSCREEN);
|
AWINDOW_FLAG_FULLSCREEN);
|
||||||
|
Loading…
Reference in New Issue
Block a user