From 6897c0bb5778627cfbfca3c67422a9562a88e560 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 2 Feb 2024 12:53:34 -0800 Subject: [PATCH] only show mid-row cache line boundaries when unexpanded, since the expansion will show more precise info --- src/df/gfx/df_views.c | 3 ++- src/ui/ui_basic_widgets.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/df/gfx/df_views.c b/src/df/gfx/df_views.c index b1dfba97..2514d4fc 100644 --- a/src/df/gfx/df_views.c +++ b/src/df/gfx/df_views.c @@ -1196,7 +1196,8 @@ df_eval_watch_view_build(DF_Window *ws, DF_Panel *panel, DF_View *view, DF_EvalW if((row->eval.mode == EVAL_EvalMode_Addr || row->eval.mode == EVAL_EvalMode_NULL) && row->eval.errors.count == 0 && row->eval.offset%64 != 0 && - row->depth > 0) + row->depth > 0 && + !row_expanded) { U64 next_off = (row->eval.offset + tg_byte_size_from_graph_raddbg_key(parse_ctx.type_graph, parse_ctx.rdbg, row->eval.type_key)); if(next_off%64 != 0 && row->eval.offset/64 < next_off/64) diff --git a/src/ui/ui_basic_widgets.c b/src/ui/ui_basic_widgets.c index 63b5e64d..8fac91d5 100644 --- a/src/ui/ui_basic_widgets.c +++ b/src/ui/ui_basic_widgets.c @@ -1045,7 +1045,7 @@ ui_table_cell_sized_begin(UI_Size size) ui_ts_cell_idx += 1; ui_set_next_pref_width(size); ui_set_next_child_layout_axis(Axis2_X); - UI_Box *cell = ui_build_box_from_stringf((column_idx > 0 ? UI_BoxFlag_DrawSideLeft : 0), "###tbl_cell_%p_%I64u", vector, vector->child_count); + UI_Box *cell = ui_build_box_from_stringf((column_idx > 0 ? UI_BoxFlag_DrawSideLeft : 0), "###tbl_cell_%p_%I64u", vector, ui_ts_cell_idx); ui_push_parent(cell); return cell; }