mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
1 parent
4abb755ed2
commit
7151067c1f
1 file changed
+6
-5
+6
-5
@@ -102,11 +102,12 @@ int main(int argc, char **argv)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef ANDROID
|
// For certain devices (Raspberry Pi, Nintendo Switch), it is desirable
|
||||||
// On Linux/Buildroot platforms like Raspberry Pi and Nintendo Switch, it
|
// for Vanilla to control the screen brightness. These devices are denoted
|
||||||
// is desirable for the brightness to be restored from config. On Android
|
// by not defining VANILLA_GUI_ENABLE_WINDOWED. However mobile platforms
|
||||||
// though, the brightness will be set externally so changing it here is
|
// like Android and iOS may also not define VANILLA_GUI_ENABLE_WINDOWED, and
|
||||||
// probably not desirable.
|
// they handle brightness themselves, so we should skip those platforms.
|
||||||
|
#if !defined(VANILLA_GUI_ENABLE_WINDOWED) && !defined(ANDROID) && (!defined(TARGET_OS_IOS) || TARGET_OS_IOS == 0)
|
||||||
vui_brightness_set(vui, vpi_config.screen_brightness);
|
vui_brightness_set(vui, vpi_config.screen_brightness);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user