1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00

sept-s: turn on backlight after drawing image.

This commit is contained in:
Michael Scire 2019-02-20 15:24:11 -08:00
parent 656053582a
commit f1ea368585

View file

@ -116,10 +116,6 @@ static void setup_env(void) {
/* Set the framebuffer. */ /* Set the framebuffer. */
display_init_framebuffer(g_framebuffer); display_init_framebuffer(g_framebuffer);
/* Turn on the backlight after initializing the lfb */
/* to avoid flickering. */
display_backlight(true);
/* Set display background color. */ /* Set display background color. */
for (size_t i = 0; i < 1280 * 768 * 4; i += 4) { for (size_t i = 0; i < 1280 * 768 * 4; i += 4) {
MAKE_REG32((uintptr_t)g_framebuffer + i) = 0xFF37394C; MAKE_REG32((uintptr_t)g_framebuffer + i) = 0xFF37394C;
@ -128,6 +124,10 @@ static void setup_env(void) {
/* Draw splash. */ /* Draw splash. */
draw_splash((volatile uint32_t *)g_framebuffer); draw_splash((volatile uint32_t *)g_framebuffer);
/* Turn on the backlight after initializing the lfb */
/* to avoid flickering. */
display_backlight(true);
/* Set up the exception handlers. */ /* Set up the exception handlers. */
setup_exception_handlers(); setup_exception_handlers();