From 4cb6e889efccc4d8b50f2302e7a2b6e9aa4c27e3 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 30 Dec 2024 10:09:29 -0800 Subject: [PATCH] hack to avoid minimization causing bad panel animation state - will investigate this more fully later... --- src/raddbg/raddbg_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index f5860848..3ff9e497 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -6970,6 +6970,10 @@ rd_window_frame(RD_Window *ws) //////////////////////////// //- rjf: animate panels // + // TODO(rjf): @hack investigate why we were ever animating to a busted + // rectangle when minimized... + // + if(!os_window_is_minimized(ws->os)) { F32 rate = rd_setting_val_from_code(RD_SettingCode_MenuAnimations).s32 ? 1 - pow_f32(2, (-50.f * rd_state->frame_dt)) : 1.f; Vec2F32 content_rect_dim = dim_2f32(content_rect);