mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-15 05:41:59 +00:00
[ui] Move draw_order update to before clearing
This fixes broken sub-menu placement and even windows overlapping the top menu bar.
This commit is contained in:
parent
013fea965b
commit
36509f5296
1 changed files with 1 additions and 1 deletions
|
@ -451,6 +451,7 @@ IMUI_BeginFrame (imui_ctx_t *ctx)
|
|||
uint32_t root_ent = ctx->root_view.id;
|
||||
auto root_size = View_GetLen (ctx->root_view);
|
||||
|
||||
ctx->draw_order = imui_draw_order (ctx->windows.size);
|
||||
clear_items (ctx);
|
||||
ctx->root_view = View_AddToEntity (root_ent, ctx->vsys, nullview, true);
|
||||
set_hierarchy_tree_mode (ctx, View_GetRef (ctx->root_view), true);
|
||||
|
@ -459,7 +460,6 @@ IMUI_BeginFrame (imui_ctx_t *ctx)
|
|||
ctx->frame_start = Sys_LongTime ();
|
||||
ctx->frame_count++;
|
||||
ctx->current_parent = ctx->root_view;
|
||||
ctx->draw_order = imui_draw_order (ctx->windows.size);
|
||||
ctx->current_menu = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue