nvllsvm / GZDoom-Android

DISCONTINUED
GNU General Public License v2.0
72 stars 36 forks source link

Add option to set screen brightness to max while in-game #25

Open nvllsvm opened 7 years ago

nvllsvm commented 7 years ago

The DOOM engine games can be fairly dark and from personal experience, are hard to play at lower brightnesses.

There should be an option to set the brightness to max while in game. The default should be off.

Code to be added to Game.java

WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.screenBrightness = 1F;
getWindow().setAttributes(attributes);