From 969a49edba9afb260911f513bbe536516887a8c0 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 8 May 2022 04:49:28 +0300 Subject: [PATCH] bdk: di: reselect winA when done with winD config --- bdk/display/di.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bdk/display/di.c b/bdk/display/di.c index 5472907..dcb0ba0 100644 --- a/bdk/display/di.c +++ b/bdk/display/di.c @@ -898,6 +898,7 @@ void display_activate_console() DISPLAY_A(_DIREG(DC_WIN_POSITION)) = 0; DISPLAY_A(_DIREG(DC_CMD_STATE_CONTROL)) = GENERAL_UPDATE | WIN_D_UPDATE; DISPLAY_A(_DIREG(DC_CMD_STATE_CONTROL)) = GENERAL_ACT_REQ | WIN_D_ACT_REQ; + DISPLAY_A(_DIREG(DC_CMD_DISPLAY_WINDOW_HEADER)) = WINDOW_A_SELECT; // Select window A. } void display_deactivate_console() @@ -916,6 +917,7 @@ void display_deactivate_console() DISPLAY_A(_DIREG(DC_WIN_WIN_OPTIONS)) = 0; // Disable window DD. DISPLAY_A(_DIREG(DC_CMD_STATE_CONTROL)) = GENERAL_UPDATE | WIN_D_UPDATE; DISPLAY_A(_DIREG(DC_CMD_STATE_CONTROL)) = GENERAL_ACT_REQ | WIN_D_ACT_REQ; + DISPLAY_A(_DIREG(DC_CMD_DISPLAY_WINDOW_HEADER)) = WINDOW_A_SELECT; // Select window A. } void display_init_cursor(void *crs_fb, u32 size)