mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-18 23:21:32 -07:00
first pass at custom window border
This commit is contained in:
+1
-1
@@ -2289,7 +2289,7 @@ ui_box_text_position(UI_Box *box)
|
||||
case UI_TextAlign_Center:
|
||||
{
|
||||
Vec2F32 advance = box->display_string_runs.dim;
|
||||
result.x = (box->rect.p0.x + box->rect.p1.x)/2 - advance.x/2;
|
||||
result.x = floor_f32((box->rect.p0.x + box->rect.p1.x)/2 - advance.x/2 - 1.f);
|
||||
result.x = ClampBot(result.x, box->rect.x0);
|
||||
}break;
|
||||
case UI_TextAlign_Right:
|
||||
|
||||
Reference in New Issue
Block a user