From cd53049e5699120c8ccc98ff64a71ed59a3208cb Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Sun, 10 Sep 2023 14:09:50 +0200 Subject: [PATCH] wiiu/video: Call GX2SetTV/DRCEnable on leaving foreground This fixes having a black background while the HBM is active. --- src/video/wiiu/SDL_wiiuvideo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/wiiu/SDL_wiiuvideo.c b/src/video/wiiu/SDL_wiiuvideo.c index dd89c4e29..f42f206aa 100644 --- a/src/video/wiiu/SDL_wiiuvideo.c +++ b/src/video/wiiu/SDL_wiiuvideo.c @@ -160,6 +160,11 @@ static int WIIU_ForegroundReleased(_THIS) WIIU_GfxHeap_MEM1Destroy(); WIIU_GfxHeap_ForegroundDestroy(); + + // This is necessary to avoid a black frame on leaving foreground + GX2SetTVEnable(TRUE); + GX2SetDRCEnable(TRUE); + videodata->hasForeground = SDL_FALSE; return 0;