diff --git a/src/base/base.h b/src/base/base.h index 6d029643..3e98d50a 100644 --- a/src/base/base.h +++ b/src/base/base.h @@ -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 diff --git a/src/pp/pp.c b/src/pp/pp.c index a02222b8..e9cb1621 100644 --- a/src/pp/pp.c +++ b/src/pp/pp.c @@ -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 diff --git a/src/ui/ui.c b/src/ui/ui.c index 1946c119..6679bf63 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -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) {