From f2c5b4eb13b2d9c687f986857367802cfd860c13 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Sat, 9 May 2026 16:45:31 -0400 Subject: [PATCH] Implement the HOOK_ON_HUD_RENDER_BEHIND fix ON THE RIGHT BRANCH --- src/game/area.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/game/area.c b/src/game/area.c index 9de060aa6..f550176a1 100644 --- a/src/game/area.c +++ b/src/game/area.c @@ -510,6 +510,15 @@ void render_game(void) { } } } else { + // this will get drawn over anyway so it doesn't + // matter to try and setup the rendering + // + // call this so any code running will still run + // even if nothing is shown on screen + if (!gDjuiDisabled) { + smlua_call_event_hooks(HOOK_ON_HUD_RENDER_BEHIND, djui_reset_hud_params); + } + render_text_labels(); if (gViewportClip != NULL) { clear_viewport(gViewportClip, gWarpTransFBSetColor);