Skip to content

Commit

Permalink
hack to avoid minimization causing bad panel animation state - will i…
Browse files Browse the repository at this point in the history
…nvestigate this more fully later...
  • Loading branch information
ryanfleury committed Dec 30, 2024
1 parent 94f0ae6 commit 4cb6e88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/raddbg/raddbg_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4cb6e88

Please sign in to comment.