d3d11 debug layer exceptions; decimal enum displays; local time display in filesystem lister

This commit is contained in:
Ryan Fleury
2024-01-19 18:42:00 -08:00
parent f48d8431c0
commit 6a7dd334ff
4 changed files with 18 additions and 7 deletions
+10 -6
View File
@@ -4726,18 +4726,22 @@ df_string_from_simple_typed_eval(Arena *arena, TG_Graph *graph, RADDBG_Parsed *r
}
if(flags & DF_EvalVizStringFlag_ReadOnlyDisplayRules)
{
result = push_str8f(arena, "0x%I64x%s%S%s", eval.imm_u64,
constant_name.size != 0 ? " (" : "",
constant_name,
constant_name.size != 0 ? ")" : "");
if(constant_name.size != 0)
{
result = push_str8f(arena, "0x%I64x (%S)", eval.imm_u64, constant_name);
}
else if(constant_name.size != 0)
{
result = push_str8f(arena, "0x%I64x (%I64u)", eval.imm_u64, eval.imm_u64);
}
}
else if(constant_name.size != 0)
{
result = push_str8f(arena, "%S", constant_name);
result = push_str8_copy(arena, constant_name);
}
else
{
result = push_str8f(arena, "0x%I64x", eval.imm_u64);
result = push_str8f(arena, "0x%I64x (%I64u)", eval.imm_u64, eval.imm_u64);
}
scratch_end(scratch);
}break;
+2 -1
View File
@@ -2450,7 +2450,8 @@ DF_VIEW_UI_FUNCTION_DEF(FileSystem)
UI_TextColor(df_rgba_from_theme_color(DF_ThemeColor_WeakText))
{
DateTime time = date_time_from_dense_time(file->props.modified);
String8 string = push_date_time_string(scratch.arena, &time);
DateTime time_local = os_local_time_from_universal_time(&time);
String8 string = push_date_time_string(scratch.arena, &time_local);
ui_label(string);
}