mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
Add brightness restore hook
This is out of the unix frontend driver on purpose, since settings do not seem to be available at init() time.
This commit is contained in:
parent
3187c87451
commit
c378665af5
@ -35551,6 +35551,9 @@ bool retroarch_main_init(int argc, char *argv[])
|
||||
menu_driver_find_driver(p_rarch, settings,
|
||||
"menu driver", verbosity_enabled);
|
||||
#endif
|
||||
/* Enforce stored brightness if needed */
|
||||
if (frontend_driver_can_set_screen_brightness())
|
||||
frontend_driver_set_screen_brightness(settings->uints.screen_brightness);
|
||||
|
||||
/* Attempt to initialize core */
|
||||
if (p_rarch->has_set_core)
|
||||
|
Loading…
Reference in New Issue
Block a user