Add ability to set "keep screen on" for android
This commit is contained in:
parent
3c6dd5749d
commit
fb2bf78591
9 changed files with 68 additions and 10 deletions
|
|
@ -707,6 +707,7 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas
|
|||
GLOBAL_DEF("display/test_width",0);
|
||||
GLOBAL_DEF("display/test_height",0);
|
||||
OS::get_singleton()->_pixel_snap=GLOBAL_DEF("display/use_2d_pixel_snap",false);
|
||||
OS::get_singleton()->_keep_screen_on=GLOBAL_DEF("display/keep_screen_on",true);
|
||||
if (rtm==-1) {
|
||||
rtm=GLOBAL_DEF("render/thread_model",OS::RENDER_THREAD_SAFE);
|
||||
if (rtm>=1) //hack for now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue