formatting
This commit is contained in:
parent
5d2662e567
commit
a5f10a2312
@ -398,7 +398,7 @@ void __asan_unpoison_memory_region(void const volatile *add, size_t);
|
||||
#define AlignedBlock(n) struct alignas(n)
|
||||
|
||||
//- Enum
|
||||
#if !LanguageIsGpu
|
||||
#if LanguageIsC
|
||||
# define Enum(name) typedef enum name name; enum name
|
||||
#else
|
||||
# define Enum(name) enum name
|
||||
|
||||
@ -1996,7 +1996,6 @@ void UpdateUser(P_Window *window)
|
||||
|
||||
GPU_MemoryInfo vram = GPU_QueryMemoryInfo();
|
||||
|
||||
|
||||
////////////////////////////////
|
||||
//~ Draw global debug info
|
||||
/* FIXME: Enable this */
|
||||
@ -2008,6 +2007,8 @@ void UpdateUser(P_Window *window)
|
||||
|
||||
UI_Box *dbg_box = UI_BuildBox(0, UI_NilKey);
|
||||
UI_PushParent(dbg_box);
|
||||
UI_PushSize(Axis_X, UI_SizeKind_Pixel, 5, 0);
|
||||
UI_PushSize(Axis_Y, UI_SizeKind_Pixel, 5, 0);
|
||||
{
|
||||
UI_BuildLabelF("blended world entities: %F/%F", FmtUint(g->ss_blended->num_ents_allocated), FmtUint(g->ss_blended->num_ents_reserved));
|
||||
UI_BuildSeparator();
|
||||
@ -2104,6 +2105,8 @@ void UpdateUser(P_Window *window)
|
||||
draw_text(g->render_sig, D_TEXTPARAMS(.font = font, .pos = pos, .str = text, .offset_y = offset_y, .color = ColorWhite));
|
||||
#endif
|
||||
}
|
||||
UI_PopSize(Axis_X);
|
||||
UI_PopSize(Axis_Y);
|
||||
UI_PopParent();
|
||||
}
|
||||
#else
|
||||
|
||||
@ -125,7 +125,7 @@ UI_Box *UI_BuildBox(UI_Flag flags, UI_Key key)
|
||||
UI_Box *box = PushStruct(g->build_arena, UI_Box);
|
||||
if (key.hash != 0)
|
||||
{
|
||||
#if RTC
|
||||
#if RtcIsEnabled
|
||||
/* Validate box not already built */
|
||||
for (UI_Box *tmp = bin->first; tmp; tmp = tmp->next_in_bin)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user