actually fix clang

This commit is contained in:
Ryan Fleury
2024-07-26 15:02:41 -07:00
parent f7dd96a5d1
commit 361be3f6e8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ extern "C"
long long _InterlockedExchangeAdd64(long long volatile*, long long);
#pragma intrinsic(_InterlockedCompareExchange64)
#pragma intrinsic(_InterlockedExchangeAdd64)
int raddbg_markup_vsnprintf(char *, unsigned long long, const char *, __builtin_va_list);
int raddbg_markup_vsnprintf(char *, unsigned long long, const char *, va_list);
#if defined(__cplusplus)
}
#endif
+1 -1
View File
@@ -2415,7 +2415,7 @@ ui_box_text_position(UI_Box *box)
case UI_TextAlign_Center:
{
Vec2F32 text_dim = box->display_string_runs.dim;
result.x = floor_f32((box->rect.p0.x + box->rect.p1.x)/2 - text_dim.x/2);
result.x = round_f32((box->rect.p0.x + box->rect.p1.x)/2 - text_dim.x/2);
result.x = ClampBot(result.x, box->rect.x0);
}break;
case UI_TextAlign_Right: