From 36d749ddb56fafd158ac25a0bd3fdb88cca52a15 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 2 Feb 2024 16:46:54 -0800 Subject: [PATCH] slightly stronger padding visualization --- src/df/gfx/df_views.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/df/gfx/df_views.c b/src/df/gfx/df_views.c index c005a2f4..71b556bd 100644 --- a/src/df/gfx/df_views.c +++ b/src/df/gfx/df_views.c @@ -1173,11 +1173,20 @@ df_eval_watch_view_build(DF_Window *ws, DF_Panel *panel, DF_View *view, DF_EvalW //- rjf: build normal row if(!(row->flags & DF_EvalVizRowFlag_Canvas)) ProfScope("row") { - ui_set_next_flags(disabled_flags|(row_is_fresh*UI_BoxFlag_DrawOverlay)); if(row_is_fresh) { + ui_set_next_flags(disabled_flags|UI_BoxFlag_DrawOverlay); ui_set_next_overlay_color(mul_4f32(df_rgba_from_theme_color(DF_ThemeColor_Highlight0), v4f32(1, 1, 1, 0.2f))); } + else if(row->flags & DF_EvalVizRowFlag_ExprIsSpecial) + { + ui_set_next_flags(disabled_flags|UI_BoxFlag_DrawOverlay); + ui_set_next_overlay_color(mul_4f32(df_rgba_from_theme_color(DF_ThemeColor_FailureBackground), v4f32(1, 1, 1, 0.2f))); + } + else + { + ui_set_next_flags(disabled_flags); + } UI_NamedTableVectorF("row_%I64x_%I64x_%I64x", row_hash, expr_hash, ewv->root_count) { //- rjf: draw start of cache lines in expansions