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:
David Guillen Fandos 2021-05-15 21:20:37 +02:00
parent 3187c87451
commit c378665af5

View File

@ -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)